1. """
    
  2. Regression tests for the resolve_url function.
    
  3. """
    
  4. 
    
  5. from django.db import models
    
  6. 
    
  7. 
    
  8. class UnimportantThing(models.Model):
    
  9.     importance = models.IntegerField()
    
  10. 
    
  11.     def get_absolute_url(self):
    
  12.         return "/importance/%d/" % self.importance