Il giorno 30/lug/07, alle ore 01:17, Matt ha scritto:
> This could all be acheived using another view to determine whether the > given name was a valid user, and if so direct you to the appropriate > view, but wouldn't that prevent you using Django's generic views? You should probably look at 'slug' and 'slug_field' in Django's generic views. Since the username is unique, I guess that you can use it as a slug: ('^(?P<slug>\w+)/', object_detail, {'queryset': User.objects.all(), 'slug_field': username}) (or something very close to this). Regards, -- Emanuele --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---