Ticket #5641: proxy.diff

File proxy.diff, 571 bytes (added by Tomáš Kopeček, 17 years ago)

variant patch

  • db/models/fields/__init__.py

     
    238238        if self.default is not NOT_PROVIDED:
    239239            if callable(self.default):
    240240                return self.default()
    241             return self.default
     241            return force_unicode(self.default)
    242242        if not self.empty_strings_allowed or (self.null and settings.DATABASE_ENGINE != 'oracle'):
    243243            return None
    244244        return ""
Back to Top