Fixed plugin missing instance bug0
This commit is contained in:
parent
415ddc2315
commit
fdd84b7e74
|
@ -14,8 +14,8 @@ class Plugin(object):
|
|||
|
||||
def __init__(self, instance=None):
|
||||
# Related model instance of this plugin
|
||||
if self.form is None:
|
||||
self.instance = instance
|
||||
if self.form is None:
|
||||
from .forms import PluginForm
|
||||
self.form = PluginForm
|
||||
super().__init__()
|
||||
|
|
Loading…
Reference in a new issue