annotations/icons/list description
This commit is contained in:
parent
b43ea828d9
commit
b1924e3c47
4 changed files with 24 additions and 13 deletions
|
|
@ -215,6 +215,8 @@ def addList(request):
|
|||
if not request.user.is_staff and value == 'featured':
|
||||
value = 'private'
|
||||
setattr(list, key, value)
|
||||
elif key == 'description':
|
||||
list.description = data['description']
|
||||
list.save()
|
||||
|
||||
if list.status == 'featured':
|
||||
|
|
@ -313,6 +315,8 @@ def editList(request):
|
|||
num += 1
|
||||
name = data['name'] + ' (%d)' % num
|
||||
list.name = name
|
||||
elif key == 'description':
|
||||
list.description = data['description']
|
||||
|
||||
if 'position' in data:
|
||||
pos, created = models.Position.objects.get_or_create(list=list, user=request.user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue