mirror of
https://github.com/django/django.git
synced 2025-07-06 10:49:17 +00:00
queryset-refactor: Removed a test that can be better (and simply) fixed on trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6491 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2c4013e74f
commit
8926b431ed
@ -21,7 +21,6 @@ class Author(models.Model):
|
|||||||
|
|
||||||
class Item(models.Model):
|
class Item(models.Model):
|
||||||
name = models.CharField(maxlength=10)
|
name = models.CharField(maxlength=10)
|
||||||
data_ = models.CharField(maxlength=10, blank=True, null=True)
|
|
||||||
tags = models.ManyToManyField(Tag, blank=True, null=True)
|
tags = models.ManyToManyField(Tag, blank=True, null=True)
|
||||||
creator = models.ForeignKey(Author)
|
creator = models.ForeignKey(Author)
|
||||||
|
|
||||||
@ -62,7 +61,7 @@ __test__ = {'API_TESTS':"""
|
|||||||
>>> i2 = Item(name='two', creator=a2)
|
>>> i2 = Item(name='two', creator=a2)
|
||||||
>>> i2.save()
|
>>> i2.save()
|
||||||
>>> i2.tags = [t1, t3]
|
>>> i2.tags = [t1, t3]
|
||||||
>>> i3 = Item(name='three', data_='x', creator=a2)
|
>>> i3 = Item(name='three', creator=a2)
|
||||||
>>> i3.save()
|
>>> i3.save()
|
||||||
>>> i4 = Item(name='four', creator=a4)
|
>>> i4 = Item(name='four', creator=a4)
|
||||||
>>> i4.save()
|
>>> i4.save()
|
||||||
@ -130,12 +129,6 @@ Bug #2253
|
|||||||
>>> (q1 & q2).order_by('name')
|
>>> (q1 & q2).order_by('name')
|
||||||
[<Item: one>]
|
[<Item: one>]
|
||||||
|
|
||||||
Bug #3265
|
|
||||||
# FIXME: Currently causes a crash. Probably not worth fixing, but must make it
|
|
||||||
# a validation error in that case.
|
|
||||||
# >>> Item.objects.get(data___exact='x')
|
|
||||||
# <Item: three>
|
|
||||||
|
|
||||||
Bugs #4088 & #4306
|
Bugs #4088 & #4306
|
||||||
>>> Report.objects.filter(creator=1001)
|
>>> Report.objects.filter(creator=1001)
|
||||||
[<Report: r1>]
|
[<Report: r1>]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user