diff options
| author | Thomas Sorrel <thomas@pandeiro.fr> | 2014-03-02 21:46:51 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2014-03-03 22:57:06 +0100 |
| commit | 53c576452e2e8feef857cd67a5c17f9159d95eb6 (patch) | |
| tree | 85e1a9f0fb60994a4743399684e4b65bd806bd9b /tests/contenttypes_tests/models.py | |
| parent | 7bbb6958dcb6a450f926e5bb49b07391f801aef1 (diff) | |
Fixed #16727 -- Added protocol-relative URL support to contenttypes.views.shortcut.
Diffstat (limited to 'tests/contenttypes_tests/models.py')
| -rw-r--r-- | tests/contenttypes_tests/models.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/contenttypes_tests/models.py b/tests/contenttypes_tests/models.py index d47cfac7f7..dadc40d3d9 100644 --- a/tests/contenttypes_tests/models.py +++ b/tests/contenttypes_tests/models.py @@ -24,3 +24,14 @@ class Article(models.Model): def __str__(self): return self.title + + +@python_2_unicode_compatible +class SchemeIncludedURL(models.Model): + url = models.URLField(max_length=100) + + def __str__(self): + return self.url + + def get_absolute_url(self): + return self.url |
