Tuesday, September 4, 2012

Re: 'str' object is not callable in base.py

On Tuesday, September 4, 2012, zayatzz wrote:
From this post i can see this line beeing wrong . 

timetable = get_object_or_404(slug=slug) 

You also need to give object as one of the parameters for get_object_or_404 shortcut: like this :

Thankyou for pointing this out - it was indeed wrong and has now been fixed. Unfortunately, it didn't solve the problem.

cheers
L. 

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment