Skip to content

Commit

Permalink
fixes bug in related_name
Browse files Browse the repository at this point in the history
  • Loading branch information
czpython committed Jun 6, 2016
1 parent 8be9258 commit c1ef8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/models/pluginmodel.py
Expand Up @@ -121,7 +121,7 @@ def __new__(cls, name, bases, attrs):
if not new_class._meta.abstract and not new_class._meta.proxy:
# True if cmsplugin_ptr was explicitly defined
# when subclassing CMSPlugin
explicit_rel = 'cmsplugin_ptr' not in attrs
explicit_rel = 'cmsplugin_ptr' in attrs

for field in new_class._meta.fields:
if field.name != 'cmsplugin_ptr':
Expand Down

0 comments on commit c1ef8c6

Please sign in to comment.