You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Contact(RootModel):
categories = fields.ManyToManyField('core.ContactCategory', related_name='contacts', through='fkcontactcategory',
description="Categories", on_delete=fields.SET_NULL)
I set null=False on the field.
categories = fields.ManyToManyField('core.ContactCategory', related_name='contacts', null=False, through='fkcontactcategory', description="Categories", on_delete=fields.SET_NULL)
When performing the migration using command.migrate(app_name) I run into an error: 'bool' object is not subscriptable
Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
I have a m2m field as follows:
class Contact(RootModel):
categories = fields.ManyToManyField('core.ContactCategory', related_name='contacts', through='fkcontactcategory',
description="Categories", on_delete=fields.SET_NULL)
I set null=False on the field.
categories = fields.ManyToManyField('core.ContactCategory', related_name='contacts', null=False, through='fkcontactcategory', description="Categories", on_delete=fields.SET_NULL)
When performing the migration using command.migrate(app_name) I run into an error:
'bool' object is not subscriptable
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: