On Dec 11, 5:38 pm, Goldy <[EMAIL PROTECTED]> wrote:
> Thank you, where would i insert, verbose_name_plural = "breweries"
> into ?
In the Meta inner class. See below...
>
> 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 Meta:
verbose_name_plural = "breweries"
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---