Commit 5d5f2522 authored by Sli's avatar Sli

Fix company display for operation creation

parent 54d3ca8e
Pipeline #349 passed with stage
in 2 minutes and 55 seconds
......@@ -10,5 +10,6 @@ admin.site.register(AccountingType)
admin.site.register(SimplifiedAccountingType)
admin.site.register(Operation)
admin.site.register(Label)
admin.site.register(Company)
......@@ -51,6 +51,9 @@ class Company(models.Model):
def get_display_name(self):
return self.name
def __str__(self):
return self.name
class BankAccount(models.Model):
name = models.CharField(_('name'), max_length=30)
iban = models.CharField(_('iban'), max_length=255, blank=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment