[1.5.x] Fixed #19645 -- Added tests for TransactionMiddleware

Backpatch of f556df90be. Backpatching
these tests so that it will be easier to backpatch the fix for #19707.
This commit is contained in:
Anssi Kääriäinen 2013-02-02 14:48:55 +02:00
parent bb12ea2cf1
commit 4c261c61f2
2 changed files with 63 additions and 3 deletions

View file

@ -1 +1,13 @@
# models.py file for tests to run.
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Band(models.Model):
name = models.CharField(max_length=100)
class Meta:
ordering = ('name',)
def __str__(self):
return self.name