Example #1
0
 def coerce(self, v):
     return text_type(v)
Example #2
0
 def __repr__(self):
     v = self.get()
     return text_type(v)
Example #3
0
 def test_hook_str(self):
     domain = 'test.foo.com'
     self.client.get('/', HTTP_HOST=domain)
     self.assertEquals(hook_str(domain),
                       text_type(settings.DOMAINS_TEST_ATTRIBUTE_STR))
Example #4
0
 def test_hook_str(self):
     domain = 'test.foo.com'
     self.client.get('/', HTTP_HOST=domain)
     self.assertEquals(hook_str(domain),
                       text_type(settings.DOMAINS_TEST_ATTRIBUTE_STR))
Example #5
0
 def coerce(self, v):
     return text_type(v)
Example #6
0
 def __repr__(self):
     v = self.get()
     return text_type(v)