Ticket #25719: fix_unicode_error_db_messages.diff
File fix_unicode_error_db_messages.diff, 625 bytes (added by , 9 years ago) |
---|
-
django/core/management/commands/loaddata.py
diff --git a/django/core/management/commands/loaddata.py b/django/core/management/commands/loaddata.py index af108e0..c45f8c1 100644
a b class Command(BaseCommand): 95 95 try: 96 96 connection.check_constraints(table_names=table_names) 97 97 except Exception as e: 98 e.args = ("Problem installing fixtures: %s" % e,)98 e.args = ("Problem installing fixtures: %s" % force_text(e),) 99 99 raise 100 100 101 101 # If we found even one object in a fixture, we need to reset the