Commit bda1fbc7 authored by Janez K's avatar Janez K

popravil bug ce je workflow pobrisan in active workflow ostane (problemi pri...

popravil bug ce je workflow pobrisan in active workflow ostane (problemi pri exportanju in importanju fixturjev)
parent df5f878b
......@@ -40,7 +40,10 @@ def get_category(request):
@login_required
def index(request):
if request.user.userprofile.active_workflow is None:
try:
if request.user.userprofile.active_workflow is None:
return redirect('new workflow')
except:
return redirect('new workflow')
categories = Category.objects.all()
user_categories = request.user.categories.all()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment