Changes between Initial Version and Version 1 of Ticket #18463


Ignore:
Timestamp:
06/11/12 15:02:36 (3 years ago)
Author:
claudep
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 Status changed from new to assigned
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Owner changed from nobody to claudep
    • Property Needs documentation unset
    • Property Triage Stage changed from Unreviewed to Accepted
  • 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