diff --git a/aleksis/core/mixins.py b/aleksis/core/mixins.py index d196b044c610ae9ad94627e2f65d34c8d57da1a7..5b2db3447db3d1b2208a623c7487e88bb689675b 100644 --- a/aleksis/core/mixins.py +++ b/aleksis/core/mixins.py @@ -232,7 +232,7 @@ class ExtensibleModel(models.Model, metaclass=_ExtensibleModelBase): related_name = cls.Meta.default_related_name # Add field to hold key to foreign model - id_field = to_field_type() + id_field = to_field_type(blank=True, null=True) cls.field(**{id_field_name: id_field}) @property