diff --git a/core/templates/core/new_item.html b/core/templates/core/new_item.html index 2c3c473..3b7bdd3 100644 --- a/core/templates/core/new_item.html +++ b/core/templates/core/new_item.html @@ -10,10 +10,9 @@
×
- -
-
-
{% trans "Choose tag" %}
{% for tag in tags %}{% endfor %}
+
{% trans "Add tags" %}
+
+ {% for tag in tags %}{% endfor %}
diff --git a/core/views.py b/core/views.py index 9019b6c..a752dad 100644 --- a/core/views.py +++ b/core/views.py @@ -235,7 +235,9 @@ def index(request): @login_required def new_item(request): requested_kind = request.GET.get('kind', '') - next_url = request.GET.get('next') or request.POST.get('next') or 'index' + next_url = request.GET.get('next') or request.POST.get('next') or reverse('index') + if next_url == 'index': + next_url = reverse('index') if request.method == 'POST': form = QuickItemForm(request.POST, request.FILES) if form.is_valid():