diff options
| author | Ryan P Kilby <rpkilby@ncsu.edu> | 2016-08-11 14:16:48 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-11 14:16:48 -0400 |
| commit | 7aeb7390fc4231119494a9ebdee3c6ee0d5af053 (patch) | |
| tree | ac6fed4d48bd5f0e6ca0957d60db4d46e133b767 /tests/custom_lookups/models.py | |
| parent | ff0a5aff4f5eb2f55fa4c45d316084ee4d462d6d (diff) | |
Fixed #26891 -- Fixed lookup registration for ForeignObject.
Diffstat (limited to 'tests/custom_lookups/models.py')
| -rw-r--r-- | tests/custom_lookups/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/custom_lookups/models.py b/tests/custom_lookups/models.py index 82a835e160..97979dd953 100644 --- a/tests/custom_lookups/models.py +++ b/tests/custom_lookups/models.py @@ -13,6 +13,10 @@ class Author(models.Model): return self.name +class Article(models.Model): + author = models.ForeignKey(Author, on_delete=models.CASCADE) + + @python_2_unicode_compatible class MySQLUnixTimestamp(models.Model): timestamp = models.PositiveIntegerField() |
