mirror of
https://github.com/django/django.git
synced 2025-07-23 13:15:32 +00:00
Fixed #21198 -- Prevented invalid use of @python_2_unicode_compatible.
Thanks jpic for the report and chmodas for working on a patch.
Reverts 2ea80b94
. Refs #19362.
This commit is contained in:
parent
570d9c2678
commit
589dc49e12
6 changed files with 14 additions and 28 deletions
|
@ -1,13 +1,10 @@
|
|||
from django.db import models
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Comment(models.Model):
|
||||
pass
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Book(models.Model):
|
||||
title = models.CharField(max_length=100, db_index=True)
|
||||
comments = models.ManyToManyField(Comment)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue