mirror of
https://github.com/django/django.git
synced 2025-10-29 00:26:07 +00:00
Moved contrib.sitemaps tests out of contrib.
This commit is contained in:
16
tests/sitemaps_tests/models.py
Normal file
16
tests/sitemaps_tests/models.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.db import models
|
||||
|
||||
|
||||
class TestModel(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
def get_absolute_url(self):
|
||||
return '/testmodel/%s/' % self.id
|
||||
|
||||
|
||||
class I18nTestModel(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse('i18n_testmodel', args=[self.id])
|
||||
Reference in New Issue
Block a user