diff --git a/app/admin.py b/app/admin.py index 25ec099..8aa06f7 100644 --- a/app/admin.py +++ b/app/admin.py @@ -59,6 +59,7 @@ class PersonAdmin(admin.ModelAdmin): }), ) list_display = ['id', 'full_name' ] + autocomplete_fields = ['organization'] # list_display_links = ['id'] diff --git a/app/models.py b/app/models.py index fd1458d..4980def 100644 --- a/app/models.py +++ b/app/models.py @@ -428,7 +428,7 @@ class Organisation(models.Model): else: name = f"{self.organisation_english}" else: - name = 'NO NAME DEFINED!!!' + name = '---' return name