Browse Source

elif->if because of previous comments

master
Adrien MAES 5 months ago
parent
commit
7166782370
  1. 4
      main/views.py

4
main/views.py

@ -270,14 +270,14 @@ def account(request):
request.user.userext.tags.add(tag)
else:
request.user.userext.tags.remove(tag)
newtag = request.GET.get('newtag')
#newtag = request.GET.get('newtag')
ban = request.GET.get('ban')
add = request.GET.get('add')
#if newtag is not None and newtag != "":
# tag, bool = Tag.objects.get_or_create(name=newtag)
# request.user.userext.tags.add(tag)
# return redirect('main_account')
elif ban is not None:
if ban is not None:
spaceid_ban = request.GET.get('spaceid_ban')
space = Space.objects.get(id=int(spaceid_ban))
if space in Space.objects.filter(users=request.user.userext):

Loading…
Cancel
Save