diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py
index e5450ab..0a77257 100644
a
|
b
|
class ValidationTests(unittest.TestCase):
|
1184 | 1184 | |
1185 | 1185 | validate(ValidationTestModelAdmin, ValidationTestModel) |
1186 | 1186 | |
| 1187 | class ValidationTestModelAdmin(ModelAdmin): |
| 1188 | date_hierarchy = 'parent__name' |
| 1189 | |
| 1190 | six.assertRaisesRegex(self, |
| 1191 | ImproperlyConfigured, |
| 1192 | "'ValidationTestModelAdmin.parent__name is neither an instance of DateField nor DateTimeField.", |
| 1193 | validate, |
| 1194 | ValidationTestModelAdmin, |
| 1195 | ValidationTestModel, |
| 1196 | ) |
| 1197 | |
| 1198 | class ValidationTestModelAdmin(ModelAdmin): |
| 1199 | date_hierarchy = 'parent__pub_date' |
| 1200 | |
| 1201 | validate(ValidationTestModelAdmin, ValidationTestInlineModel) |
| 1202 | |
1187 | 1203 | def test_ordering_validation(self): |
1188 | 1204 | |
1189 | 1205 | class ValidationTestModelAdmin(ModelAdmin): |