custom db field as filter in admin
Hello all,
I have a custom DB field: a version string like "1.0.5rc3" which is
actually stored as an int in the db.
After fidling around a bit I managed to make the field so that
everything you would think should work works. It looks like a version
string everywhere, I can input it as a version string everywhere.
However, when I turn this field into a filter in the admin, instead of
seeing the filter-versions as my string (i.e. "1.0.5rc3") I see it as
the underlying database type (i.e.10000301)
I implemented __unicode__ and __str__ on my object, but no luck either!
- bram
--
http://www.samplesumo.com
http://www.freesound.org
http://www.smartelectronix.com
http://www.musicdsp.org
office: +32 (0) 9 335 59 25
mobile: +32 (0) 484 154 730
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home