Ticket #6650: sqlreset.patch

File sqlreset.patch, 547 bytes (added by Vladimir Pouzanov, 17 years ago)
  • django/core/management/commands/sqlreset.py

     
    77
    88    def handle_app(self, app, **options):
    99        from django.core.management.sql import sql_reset
    10         return '\n'.join(sql_reset(app, self.style))
     10        sr = '\n'.join(sql_reset(app, self.style))
     11        if type(sr) == unicode: sr = sr.encode('utf-8')
     12        return sr
Back to Top