1
0
mirror of https://github.com/django/django.git synced 2025-01-15 12:52:31 +00:00
Tim Graham e1046a96bc [1.8.x] Moved contrib.sitemaps tests out of contrib.
Backport of fbc467c26bc0adb9867b97d0bb5642b2a85eb357 from master
2015-02-11 11:52:10 -05:00

17 lines
397 B
Python

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