Changes between Initial Version and Version 1 of Ticket #18463


Ignore:
Timestamp:
Jun 11, 2012, 3:02:36 PM (12 years ago)
Author:
Claude Paroz
Comment:

This bug is only triggered when the model name in deferred_class_factory is truncated (> 80 chars) and then a Unicode string is returned. Calling str() seems a good solution.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18463

    • Property Owner changed from nobody to Claude Paroz
    • Property Triage Stage UnreviewedAccepted
    • Property Status newassigned
  • Ticket #18463 – Description

    initial v1  
    11I'm getting the following error if I try to run a piece of code through my views.py:
    22
     3{{{
    34Traceback (most recent call last):
    45  File "<console>", line 1, in <module>
     
    1415    return type(name, (model,), overrides)
    1516TypeError: type() argument 1 must be string, not unicode
     17}}}
    1618
    1719Strangely, if I run a similar code directly in the Django shell, everything goes well. The code looks like this:
Back to Top