Browse Source

remove creation of new tag

master
Adrien MAES 5 months ago
parent
commit
b23e56b7b0
  1. 8
      main/views.py
  2. 3
      templates/main/account.html

8
main/views.py

@ -273,10 +273,10 @@ def account(request):
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')
#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:
spaceid_ban = request.GET.get('spaceid_ban')
space = Space.objects.get(id=int(spaceid_ban))

3
templates/main/account.html

@ -60,6 +60,8 @@
</article>
<h2>TAGS</h2>
<!--
<div class="row">
<div class="col-4 col-12-medium">
<article class="mini-post" >
@ -70,6 +72,7 @@
</article>
</div>
</div>
-->
<article class="post">

Loading…
Cancel
Save