>
> The only thing I can think of is to delete 3 and 4 and then re-create them
> and hope that puts them in the right order. Any other ideas?
>
That should work just fine, as long as you only add at the end in the
future. If it becomes an issue more, you may want to consider adding an
"order" o
I just wanted to report back and see if you had any additional ideas to
offer. I did change the meta from id to pk, but there was no change. Then I
took reverse off the template for loop and (almost) everything was the way
I wanted it. For some reason, Article 4 came out Sections 3,4,1,2, in tha
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 al
Daniel,
Thank you. Yes, your code works. If I had posted a week ago, I would not
have lost a week on my life expectancy. Obviously, I'm just not 'getting
it'. If you have any suggestions, or resources, to help me understand
better going forward, I'd be grateful, but you've done plenty already. T
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
}}/{{ a
On Wednesday, 1 October 2014 21:32:14 UTC+1, Malik Rumi wrote:
>
> Executive Summary:
>
> I need to know how to consistently write fbv’s that get the content I want
> out of my database and into my templates for display on my site in the way
> I want it displayed.
>
> I confess, I don’t get it. M
Executive Summary:
I need to know how to consistently write fbv’s that get the content I want
out of my database and into my templates for display on my site in the way
I want it displayed.
I confess, I don’t get it. Mark me down in points for asking a dumb
question. I don’t care. I need hel
7 matches
Mail list logo