Changes between Version 7 and Version 8 of Ticket #21198, comment 2


Ignore:
Timestamp:
Sep 30, 2013, 8:34:56 AM (11 years ago)
Author:
James Pic

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21198, comment 2

    v7 v8  
    33Anyway, it does kinds of look like the user should use `@python_2_unicode_compatible` on any model class that is "Python2-unicode-compatible", even by inheritance.
    44
    5 So maybe it would be cool to raise a specific exception if `@python_2_unicode_compatible` is applied on a class without an `__str__` method indeed. That would avoid the need of checking the documentation for the user :D
     5So maybe it would be cool to raise a specific exception if `@python_2_unicode_compatible` is applied on a class without an `__str__` method indeed. That would avoid the need of checking the documentation for the user :D I myself had only checked the "porting" guide and not the API docs (obviously, my bad).
Back to Top