Fixed plugin missing instance bug0

This commit is contained in:
Marc Aymerich 2016-05-08 09:35:18 +00:00
parent 415ddc2315
commit fdd84b7e74

View file

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