zoo_data: ne pas extraire le schéma pour les objets n'en ayant pas (fixes #21791)
This commit is contained in:
parent
c7a26bebe9
commit
e2184aadf4
|
@ -40,7 +40,7 @@ class JSONEditorMixin(object):
|
|||
def get_form(self, request, obj=None, **kwargs):
|
||||
widgets = kwargs.setdefault('widgets', {})
|
||||
for field in self.json_fields:
|
||||
if obj:
|
||||
if obj and hasattr(obj, 'schema'):
|
||||
schema = obj.schema.schema
|
||||
else:
|
||||
schema = {}
|
||||
|
|
Loading…
Reference in New Issue