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:
Aymeric Augustin 2013-10-13 18:06:58 +02:00
parent 570d9c2678
commit 589dc49e12
6 changed files with 14 additions and 28 deletions

View file

@ -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)