Hello,
I made a library application. I have books each with its own id number (different from the autofield added by django). the book has several foreign keys each with its own id.

I wrote a function that returns a long id number in string format consisting of the book id number and id number of several of its foreign keys.
say I have a topic foreign key. the function does something like this:
book id: 122
topic id: 4
the function returns: 04-0122
I show this id number in the admin page. I want to sort this item which is not actually in the database by topic id then by book id. however, admin_order_field only takes 1 property.
if i have for example the following:
04-0122
03-1002
04-0043
they should be like this in the admin page after sorting:
03-1002
04-0043
04-0122

is that possible?
Thank you

--
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/53C6C3AA.1010803%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to