I have a list of categories, which entries are filed into, then some
can click a category link in a template and it will take them to a
list of entries in that particular category. The problem is one of
this categories is "About Me", what I have so far in my view is:

current_entries =
Entry.objects.filter(entry_cat__cat_name=category).order_by("-
entry_date")

Since you can't have a space in a url the I apply the following filter
to the category name for the link:

|cut:" "|lower

This means the link location changes from url/About Me to url/aboutme,
this now passes into the view fine, but obviously it won't match About
Me in the database, from what i have gathered so far it seems to be
case insensitive so the problem is the space.

So, how can i get the  URL to match whats in the database?

thanks,

Andrew
--~--~---------~--~----~------------~-------~--~----~
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