Thanks a lot, =)

On 20 Ağustos, 14:37, Steve Holden <holden...@gmail.com> wrote:
> On 8/20/2010 4:22 AM, emre can karabacak wrote:> I'm new to django, and 
> apparently django automatically adds an 's' to
> > the ends of category titles i.e. Groups,Users, etc. but I have
> > 'category' and other titles that end with a 'y'. so django turns these
> > into Categorys, etc. how can I fix this? Is there a way to override
> > the function that does this? thank you.
>
> Yes, indeed. When you define your model you have to put a Meta class
> definition inside it. Within this class definition put
>
>         verbose_name_plural = "Categories"
>
> and you should be good to go. See
>
>  http://docs.djangoproject.com/en/dev/ref/models/options/
>
> for more  options.
>
> regards
>  Steve
> --
> DjangoCon US 2010 September 7-9http://djangocon.us/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to