Friday, March 15, 2013

Re: how do I order a selection box in admin?

On 16/03/2013 1:59am, frocco wrote:
> Hello,
>
> I have a product record that can be assigned multiple categories.
> The problem I am having is the category list is not sorted by name.
> how can I sort the list in admin when I try and add a new product?

Have you seen ...

https://docs.djangoproject.com/en/dev/ref/models/options/#ordering

https://docs.djangoproject.com/en/dev/ref/models/options/#order-with-respect-to

>
> Thanks
>
> --
> 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+unsubscribe@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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
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+unsubscribe@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate