diff --git a/core/views/uploads.py b/core/views/uploads.py index 6a45e08..9678c5c 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -340,7 +340,7 @@ def logbookedit(request, year=None, slug=None): # This is a hack, why can we not reproduce this bug on the dev system? if len(slug) < 7: slug = "" - if prev_slug < 7: + if len(prev_slug) < 7: prev_slug = "" if not prev_slug and not slug: