display the salutations names

This commit is contained in:
Andreas Zweili 2017-11-19 22:22:40 +01:00
parent 0427c43a25
commit 772924ef8d
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,9 @@ class City(models.Model):
class Salutation(models.Model):
name = models.CharField(max_length=20)
def __str__(self):
return self.name
class Person(models.Model):
first_name = models.CharField(max_length=200)