Ticket #25719: fix_unicode_error_db_messages.diff

File fix_unicode_error_db_messages.diff, 625 bytes (added by Emanuel Koczwara, 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):  
    9595        try:
    9696            connection.check_constraints(table_names=table_names)
    9797        except Exception as e:
    98             e.args = ("Problem installing fixtures: %s" % e,)
     98            e.args = ("Problem installing fixtures: %s" % force_text(e),)
    9999            raise
    100100
    101101        # If we found even one object in a fixture, we need to reset the
Back to Top