Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Fixed new localization strings not saving (bug 718018)
Browse files Browse the repository at this point in the history
  • Loading branch information
robhudson committed Jan 19, 2012
1 parent bf97714 commit ed1350e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/localizers/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def categories(request, locale_code):
for form in formset:
pk = form.cleaned_data.get('id')
name = form.cleaned_data.get('name')
if category_names.get(pk) != None and name != category_names[pk]:
if name != category_names.get(pk):
# Name changed, let's save it.
cat = category_objects.get(pk)
if not cat:
Expand Down

0 comments on commit ed1350e

Please sign in to comment.