For the ordering issue, I'd recommend setting ordering = ['pk'] in the Model class Meta, then you don't need to try to handle it in your view.
-- What does your sectionView look like? Does /{{ id }}/{{ slug }}/ uniquely identify both an article and a section, or should it be /{{ article_id }}/{{ article_slug }}/{{ section_id }}/ ?
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4e97ee00-3535-40f0-ac35-27a5dfb464cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment