old_contents: from cms import externals
  from cms.apps.pages.models import Page
  from django.contrib.contenttypes.models import ContentType
  from django.test import TestCase
  
  from ..models import People, Person
  
  
  class ApplicationTestCase(TestCase):
  
      def setUp(self):
          # Note: as this is the only page in the database, it's absolute URL
          # will simply be '/'
  
          with externals.watson.context_manager("update_index")():
              content_type = ContentType.objects.get_for_model(People)
              self.page = Page.objects.create(
                  content_type=content_type,
                  title='Foo',
                  url_title='foo',
              )
  
              self.person_page = People.objects.create(
                  page=self.page,
              )
  
          self.person = Person.objects.create(
              page=self.page,
              url_title='foo-bar',
              first_name='Foo',
              last_name='Bar',
          )
  
      def test_person_get_absolute_url(self):
          self.assertEqual(self.person.get_absolute_url(), '/foo-bar/')
  
      def test_person_unicode(self):
          self.assertEqual(self.person.__unicode__(), 'Foo Bar')
  
new_contents: from cms import externals
  from cms.apps.pages.models import Page
  from django.contrib.contenttypes.models import ContentType
  from django.test import TestCase
  
  from ..models import People, Person
  
  
  class ApplicationTestCase(TestCase):
  
      def setUp(self):
          # Note: as this is the only page in the database, it's absolute URL
          # will simply be '/'
  
          with externals.watson.context_manager("update_index")():
              content_type = ContentType.objects.get_for_model(People)
              self.page = Page.objects.create(
                  content_type=content_type,
                  title='Foo',
                  slug='foo',
              )
  
              self.person_page = People.objects.create(
                  page=self.page,
              )
  
          self.person = Person.objects.create(
              page=self.page,
              url_title='foo-bar',
              first_name='Foo',
              last_name='Bar',
          )
  
      def test_person_get_absolute_url(self):
          self.assertEqual(self.person.get_absolute_url(), '/foo-bar/')
  
      def test_person_unicode(self):
          self.assertEqual(self.person.__unicode__(), 'Foo Bar')
  
subject: Fix old `url_title` references.