Skip to content
Snippets Groups Projects
Commit 09add75f authored by Dylann Cordel's avatar Dylann Cordel :crossed_swords:
Browse files

correct meta class

parent a61c5dca
No related branches found
No related tags found
No related merge requests found
......@@ -77,8 +77,6 @@ class NewsboxModelBase(models.base.ModelBase):
# (excluding Model class itself).
parents = [b for b in class_bases if isinstance(b, NewsboxModelBase) and
not (b.__name__ == 'NewBase' and b.__mro__ == (b, object))]
if not parents:
return super_new(mcls, class_name, class_bases, class_attrs)
#retrieve newsbox options in Meta class and delete these from the
#Meta class to avoid django complain about unsupported keys.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment