mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-21 01:48:21 +02:00
continue the script and few change to model
This commit is contained in:
@ -79,11 +79,3 @@ class Wrapped(models.Model):
|
||||
self.public = not self.public
|
||||
self.save()
|
||||
return
|
||||
|
||||
@property
|
||||
def data(self):
|
||||
return json.load(self.data_json)
|
||||
|
||||
@data.setter
|
||||
def data(self, data):
|
||||
self.data_json = json.dumps(data, indent=2)
|
||||
|
Reference in New Issue
Block a user