'Check that the correct model is loaded and save / reload data'

def test_custom_model(self):

    image = self.create_filer_image()
    if DefaultImage._meta.swapped:
        self.assertTrue(hasattr(image, u'extra_description'))
        self.assertFalse(hasattr(image, u'author'))
        image.extra_description = u'Extra'
        image.save()
        reloaded = Image.objects.get(pk=image.pk)
        self.assertEqual(reloaded.extra_description, image.extra_description)
    else:
        self.assertFalse(hasattr(image, u'extra_description'))
        self.assertTrue(hasattr(image, u'author'))
        image.author = u'Me'
        image.save()
        reloaded = Image.objects.get(pk=image.pk)
        self.assertEqual(reloaded.author, image.author)
