Thank you, where would i insert, verbose_name_plural = "breweries"
into ?
class Brewery (models.Model):
name = models.CharField(maxlength=60)
status = models.CharField(maxlength=8)
address = models.CharField(maxlength=60)
postcode = models.CharField(maxlength=8)
county = models.CharField(maxlength=40)
phone = models.IntegerField(maxlength=11)
fax = models.IntegerField(maxlength=11)
website = models.URLField()
email = models.CharField(maxlength=50)
def __str__(self):
return self.name
class Admin:
list_display = ('name', 'status', 'address', 'county',
'phone', 'fax', 'website', 'email')
list_display_links = ('name', 'status')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---