Fixed plugin missing instance bug0

This commit is contained in:
Marc Aymerich 2016-05-08 09:35:18 +00:00
parent 415ddc2315
commit fdd84b7e74
1 changed files with 1 additions and 1 deletions

View File

@ -14,8 +14,8 @@ class Plugin(object):
def __init__(self, instance=None): def __init__(self, instance=None):
# Related model instance of this plugin # Related model instance of this plugin
if self.form is None:
self.instance = instance self.instance = instance
if self.form is None:
from .forms import PluginForm from .forms import PluginForm
self.form = PluginForm self.form = PluginForm
super().__init__() super().__init__()