Similar to my previous question, I'm trying to use the related model within ModelAdmin. (This is because I would like it to be available in both admin views.) This time, however I am using the new ParentalManyToManyField
or just a normal ManyToManyField
which seem to mess things up.
I wrote the following structure:
class B(Model): # or Orderable
...
edit_handler = TabbedInterface([
ObjectList([
FieldPanel('aes', widget=CheckboxSelectMultiple),
], heading=_('Aes'),
),
])
class A(ClusterableModel):
...
bees = ParentalManyToManyField(
B,
related_name='aes',
blank=True,
)
...
edit_handler = TabbedInterface([
ObjectList([
FieldPanel('bees', widget=CheckboxSelectMultiple),
], heading=_('Bees'),
),
])
When trying to reach the page I receive a Field Error
:
Unknown field(s) (aes) specified for B
Is what I'm trying to do not possible yet or did I forget a step?