From 5d5f2522c47c2443dbd4f93840a10bfe625691b5 Mon Sep 17 00:00:00 2001 From: klmp200 Date: Sun, 6 Nov 2016 23:34:15 +0100 Subject: [PATCH] Fix company display for operation creation --- accounting/admin.py | 1 + accounting/models.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/accounting/admin.py b/accounting/admin.py index 36e40b82..43fc1caa 100644 --- a/accounting/admin.py +++ b/accounting/admin.py @@ -10,5 +10,6 @@ admin.site.register(AccountingType) admin.site.register(SimplifiedAccountingType) admin.site.register(Operation) admin.site.register(Label) +admin.site.register(Company) diff --git a/accounting/models.py b/accounting/models.py index f35d0252..3a17fe8e 100644 --- a/accounting/models.py +++ b/accounting/models.py @@ -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)