Just to be clear, the ManyToManyField will have 'a', 'c', 'b' listed under
Person1's admin interface with 'a' and 'c' highlighted.
What I want to achieve is to order the name => 'a', 'b', 'c' with 'a', 'c'
highlighted for Person1 and 'b' highlighted for Person2.
-Aaron
On Wed, Jan 28, 2009 at 6:0
On Wed, Jan 28, 2009 at 4:44 PM, Malcolm Tredinnick <
malc...@pointy-stick.com> wrote:
>
> On Wed, 2009-01-28 at 06:49 -0800, Aaron Lee wrote:
> > I tried doing that but it didn't work, the order of names within the
> > PersonAdmin still shows the Name according to pk order.
>
> Firstly, realise
On Wed, 2009-01-28 at 06:49 -0800, Aaron Lee wrote:
> I tried doing that but it didn't work, the order of names within the
> PersonAdmin still shows the Name according to pk order.
Firstly, realise that your question doesn't have a "correct" answer.
Ordering by multi-valued fields always have th
I tried doing that but it didn't work, the order of names within the
PersonAdmin still shows the Name according to pk order.
-Aaron
On Wed, Jan 28, 2009 at 1:03 AM, knight wrote:
>
> Hi,
>
> You can do it by adding:
>
> class Meta:
>ordering = ['name']
>
> to you Name class.
> Regards,
Hi,
You can do it by adding:
class Meta:
ordering = ['name']
to you Name class.
Regards, Alex A.
On Dec 24 2008, 9:17 am, "Aaron Lee" wrote:
> Hi I have a ManyToMany field names in my class and I would like to show the
> names in sorted order (according to 'name') in the admin interfa
5 matches
Mail list logo