예제 #1
0
 def coerce(self, v):
     return text_type(v)
예제 #2
0
 def __repr__(self):
     v = self.get()
     return text_type(v)
예제 #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))
예제 #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))
예제 #5
0
 def coerce(self, v):
     return text_type(v)
예제 #6
0
 def __repr__(self):
     v = self.get()
     return text_type(v)