space
This commit is contained in:
parent
051a3578b4
commit
0d5c968026
1 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@ class Edit(models.Model):
|
|||
elif key == 'rightslevel':
|
||||
self.rightslevel = int(data['rightslevel'])
|
||||
if key == 'query' and not data['query']:
|
||||
setattr(self, key, {"static":True})
|
||||
setattr(self, key, {"static": True})
|
||||
elif key == 'query' and isinstance(data[key], dict):
|
||||
setattr(self, key, data[key])
|
||||
|
||||
|
@ -205,7 +205,7 @@ class Edit(models.Model):
|
|||
pos.save()
|
||||
if 'type' in data:
|
||||
if data['type'] == 'static':
|
||||
self.query = {"static":True}
|
||||
self.query = {"static": True}
|
||||
self.type = 'static'
|
||||
else:
|
||||
self.type = 'smart'
|
||||
|
|
Loading…
Reference in a new issue