Gitlab CSE Unil

Commit e9e1fbea authored by M. Chardon's avatar M. Chardon
Browse files

mantis 244

parent 67a9000e
......@@ -157,7 +157,7 @@ class AnObjViewSet(viewsets.ModelViewSet):
user = request.user
anobj = AnObj.objects.get(pk=pk)
new_publish_mode = int('publish_mode', 0))
if new_publish_mode not in xrange(3):
if new_publish_mode not in range(3):
raise ValueError("Invalid publish mode")
Supports Markdown
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