mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Merged regressiontests and modeltests into the test root.
This commit is contained in:
12
tests/resolve_url/models.py
Normal file
12
tests/resolve_url/models.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""
|
||||
Regression tests for the resolve_url function.
|
||||
"""
|
||||
|
||||
from django.db import models
|
||||
|
||||
|
||||
class UnimportantThing(models.Model):
|
||||
importance = models.IntegerField()
|
||||
|
||||
def get_absolute_url(self):
|
||||
return '/importance/%d/' % (self.importance,)
|
||||
Reference in New Issue
Block a user