Skip to content

Instantly share code, notes, and snippets.

@elyssonmr
Created August 9, 2018 18:48
Show Gist options
  • Save elyssonmr/c22e893a5531b9c783b4c70e7dc8520f to your computer and use it in GitHub Desktop.
Save elyssonmr/c22e893a5531b9c783b4c70e7dc8520f to your computer and use it in GitHub Desktop.
class VendasAdmin(admin.ModelAdmin):
list_display = ('valor_total', 'outros', 'campos')
def valor_total(self, obj):
return '%.2f' % obj.balance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment