manage home dialog

This commit is contained in:
j 2017-01-26 19:15:00 +01:00
commit 85c63d228f
3 changed files with 191 additions and 0 deletions

View file

@ -44,6 +44,7 @@ class Item(models.Model):
changed = True
if 'active' in data:
self.active = data['active'] is True
changed = True
if changed:
self.save()
return True