1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[1.8.x] Moved contrib.sitemaps tests out of contrib.

Backport of fbc467c26b from master
This commit is contained in:
Tim Graham
2015-02-10 08:11:25 -05:00
parent 0520cfe94a
commit e1046a96bc
13 changed files with 43 additions and 47 deletions

View 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])