On 3/4/07, Arafel <[EMAIL PROTECTED]> wrote:
> Quick question: How can i make the model names not pluralize in the
> admin site?

In the "class Meta" part of your model definition, add "verbose_name_plural".

For example, if you had this:

class MyModel(models.Model):
    ...fields defined here...
    class Meta:
        ordering = ['foo']

You could change to

class MyModel(models.Model):
    ...fields defined here...
    class Meta:
        ordering = ['foo']
        verbose_name_plural = 'MyModel'

And the admin would use 'MyModel' instead of the default 'MyModels'.

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to