Hi all,
i am looking for solution to sort a table in a template:
Basically it's about switching between ascending and descending order.
My idea was to store the current sort order in the template's
extra_context (extra_context={'dir': sortdir,) and retrieve it from
there the next time i call the view.
Based on the set variable i could easily invert the sort-order .
Though this seems rather simple i couldn't find any information on how
to access the context from a view funtion? Is this possible at all?
Are there other good solutions (apart form js) to achieve what i am
trying to do?
Greetings,
Andreas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---