1
0
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:
quark
2025-02-13 02:39:33 +01:00
parent b0c3eee699
commit 19d1ecfc66
3 changed files with 126 additions and 55 deletions

View File

@ -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)