mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Co-authored-by: Jarek Glowacki <jarekwg@gmail.com>
This commit is contained in:
parent
0c0240aba8
commit
225d96533a
8 changed files with 112 additions and 17 deletions
|
@ -1212,9 +1212,8 @@ class OtherModelTests(SimpleTestCase):
|
|||
class Model(models.Model):
|
||||
fk = models.ForeignKey('self', models.CASCADE)
|
||||
|
||||
@property
|
||||
def fk_id(self):
|
||||
pass
|
||||
# Override related field accessor.
|
||||
Model.fk_id = property(lambda self: 'ERROR')
|
||||
|
||||
self.assertEqual(Model.check(), [
|
||||
Error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue