Skip to content
Snippets Groups Projects
Commit c3586622 authored by Martin Burchell's avatar Martin Burchell
Browse files

Changed representation of uncategorized to ""

Ideally I'd like None to represent no category but empty string fits
better with what is on the form for the individual dropdowns. So
let's make that consistent.
parent dac37a7b
No related branches found
No related tags found
1 merge request!31Uncategorise
......@@ -257,7 +257,7 @@ def _handle_batch_action(request, batch_action, selected):
if batch_action == REMOVE_QTYPE_COMMAND:
_categorize_items(request,
selected,
None)
'')
return
messages.error(request, _("Unknown batch action '%s'" % batch_action))
......@@ -343,7 +343,7 @@ def _add_items_categories(request, items):
failed = 0
for item_id, taxonomy_slug, term_name in items:
try:
if term_name: # TODO not None
if term_name:
transport.items.add_term(
item_id,
taxonomy_slug,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment