Collin, 
Thank you for the suggestion. I will try it tonight after I get off work 
and can finish cleaning up the code following Daniel's answer. sectionView 
is supposed to be id/slug, but I included the Article name in the Section 
names, because I can't put a fk in the slug. So maybe that was also a newby 
mistake. This must be why Django is sending Article 1 and Article 2 Section 
1 to the same view, it sees the match for 'Article' and stops there. So 
I'll probably end up renaming them, so as you can see, I have (made for 
myself) a lot of (re)work to do. But I am learning! 

On Thursday, October 2, 2014 12:49:47 PM UTC-5, Collin Anderson wrote:
>
> 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+unsubscr...@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/bc2e3171-e55b-4e64-bd6d-bbc36e7118d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to