Try putting Orderable as the first baseclass, I think that's what's worked for me in past.

On 24/01/2015 8:25 AM, Sam Kingston wrote:
Hi guys,

Should TabularDynamicInlineAdmin allow ordering on an inline class whose
model subclasses Orderable?

For instance, *admin.py*:

from mezzanine.core.admin import TabularDynamicInlineAdmin

from .models import Card

class CardInlineAdmin(TabularDynamicInlineAdmin):
     model = Card.pages.through

from mezzanine.pages.admin import PageAdmin
PageAdmin.inlines += (CardInlineAdmin,)

*models.py*:

class Card(Displayable, RichText, Orderable):
     pages = models.ManyToManyField(Page)

     class Meta:
         ...

This yields the correct Tabular inline on the PageAdmin model, but
doesn't let me drag'n'drop to order.

Am I going about this the wrong way?

Thanks

Sam

--
You received this message because you are subscribed to the Google
Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.



--
Email: [email protected]

--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to