'slug_field':'user' Marco A. пишет: > > Hi ! > > I doesnt undestand why , the slug by filters doesnt run . > > error : > > > NameError at /marco/ > > > name 'user' is not defined > > Request Method: GET > Request URL: http://127.0.0.1:8000/marco/ > Exception Type: NameError > Exception Value: name 'user' is not defined > Exception Location: /home/tulap/cit2/../cit2/urls.py in <module>, > line 15 > Python Executable: /usr/bin/python > Python Version: 2.5.1 > > > my URL.PY is : > > > """" > from saying.models import Cit > > info_dict = { > 'queryset': Cit.objects.all(), > } > > urlpatterns = patterns('', > > ('^(?P<slug>\w+)/', > 'django.views.generic.list_detail.object_list', {'queryset': > Cit.objects.all(),'slug_field':user}), > > My model is : > > class Cit(models.Model): > idfrase = models.IntegerField() # the id of the saying > testo = models.TextField() #text of the > saying in that lenguage > user = models.CharField(maxlength=12) #the user who write the saying > > def __unicode__(self): > return self.user > > def myself(self): > return self.testo > > > > > Thanks to all , for the help > > Marco > > > > > > >
-- Artiom Diomin, Development Dep, "Comunicatii Libere" S.R.L. http://www.asterisksupport.ru http://www.asterisk-support.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---