Created
August 9, 2018 18:48
-
-
Save elyssonmr/c22e893a5531b9c783b4c70e7dc8520f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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