Add transaction rollback

This commit is contained in:
Roberto Rosario
2012-02-06 14:38:59 -04:00
parent 758661c280
commit 248a5ea82d

View File

@@ -24,8 +24,8 @@ def register_history_type(history_type_dict):
history_type_obj.save()
except DatabaseError:
# Special case for syncdb
pass
transaction.rollback()
# Runtime
history_types_dict.setdefault(namespace, {})
history_types_dict[namespace][name] = {