Fix company display for operation creation

This commit is contained in:
Antoine Bartuccio 2016-11-06 23:34:15 +01:00
parent 54d3ca8e65
commit 5d5f2522c4
2 changed files with 4 additions and 0 deletions

View File

@ -10,5 +10,6 @@ admin.site.register(AccountingType)
admin.site.register(SimplifiedAccountingType) admin.site.register(SimplifiedAccountingType)
admin.site.register(Operation) admin.site.register(Operation)
admin.site.register(Label) admin.site.register(Label)
admin.site.register(Company)

View File

@ -51,6 +51,9 @@ class Company(models.Model):
def get_display_name(self): def get_display_name(self):
return self.name return self.name
def __str__(self):
return self.name
class BankAccount(models.Model): class BankAccount(models.Model):
name = models.CharField(_('name'), max_length=30) name = models.CharField(_('name'), max_length=30)
iban = models.CharField(_('iban'), max_length=255, blank=True) iban = models.CharField(_('iban'), max_length=255, blank=True)