diff --git a/tests/delete/models.py b/tests/delete/models.py
index 2fc5ebe217..70a0de62ab 100644
a
|
b
|
|
1 | 1 | from django.db import models |
2 | 2 | |
3 | 3 | |
| 4 | class Ticket30333(models.Model): |
| 5 | name = models.CharField(max_length=100) |
| 6 | |
| 7 | |
4 | 8 | class R(models.Model): |
5 | 9 | is_default = models.BooleanField(default=False) |
6 | 10 | |
diff --git a/tests/delete/tests.py b/tests/delete/tests.py
index 55eeb226ea..8937dd8079 100644
a
|
b
|
from django.test import TestCase, skipIfDBFeature, skipUnlessDBFeature
|
7 | 7 | from .models import ( |
8 | 8 | MR, A, Avatar, Base, Child, HiddenUser, HiddenUserProfile, M, M2MFrom, |
9 | 9 | M2MTo, MRNull, Parent, R, RChild, S, T, User, create_a, get_default_r, |
| 10 | Ticket30333, |
10 | 11 | ) |
11 | 12 | |
12 | 13 | |
… |
… |
class OnDeleteTests(TestCase):
|
14 | 15 | def setUp(self): |
15 | 16 | self.DEFAULT = get_default_r() |
16 | 17 | |
| 18 | def test_30330(self): |
| 19 | r = Ticket30333.objects.create(name='test') |
| 20 | r.delete() |
| 21 | self.assertEqual(r.pk, None) |
| 22 | |
17 | 23 | def test_auto(self): |
18 | 24 | a = create_a('auto') |
19 | 25 | a.auto.delete() |