I appreciate that; I'm asking if this undocumented feature is expected
to work for the foreseeable future, and not likely to be changed in the
future development of django. This, in my mind, is pertinent to
django-developers.
Cheers
Tom
PS, this is hardly a difficult question, could you not have simply
answered it instead of being brusque?
I appreciate that; I'm asking if this undocumented feature is expected
to work for the foreseeable future, and not likely to be changed in the
future development of django. This, in my mind, is pertinent to
django-developers.
Cheers
Tom
PS, this is hardly a difficult question, could you not have simply
answered it instead of being brusque?
Thanks, that actually *is* the answer: undocumented feature, do not
expect it to work in the long term.
I will come up with a different way to manage it - all I am trying to do
is write manageable code that doesn't require my knowledge to maintain.
Cheers
Tom
Hi all (replying to all followups in one, to finish off the thread). The
main reason I didn't want to use SortedDict is that these structures
come from a complex data structure that a) doesn't know about a django,
and b) doesn't need to be sorted. It seemed wrong, and to break
encapsulation, to couple this module to django or to rework it's data
structures in order for it to be displayed in a template.
The suggestion to take the dictsort filter aside to ensure it continues
working is also a good one, thanks. I did consider raising a
documentation trac issue instead, saying it was an undocumented feature.
I actually thought this way would be less fuss, and less distracting
than a non-bug issue being raised during the 1.1 release.
To be honest, I'm surprised this caused as much fuss. I would have
thought it a pretty common use case, wanting to iterate through a
dictionary, sorted by it's keys. I'm surprised django has no way to do
this without using undocumented features.
Cheers
Tom