commit
9b9d801c38
@ -21,7 +21,7 @@ __all__ = ['receive_persons', 'generate_person_id', 'get_person', 'Person',
|
||||
'PersonField', 'PersonMixin', 'EmptyPerson']
|
||||
|
||||
|
||||
class EmptyPerson(PersonMixin):
|
||||
class EmptyPerson(PersonMixin, Person):
|
||||
@property
|
||||
def person_id(self):
|
||||
return 'empty'
|
||||
|
@ -142,12 +142,10 @@ def ajax_request(data):
|
||||
|
||||
|
||||
def _propper_unicode(text):
|
||||
res = ''
|
||||
if not isinstance(text, unicode):
|
||||
res = u"%s" % text.decode('UTF-8')
|
||||
return u"%s" % text.decode('UTF-8')
|
||||
else:
|
||||
res = text
|
||||
return res
|
||||
return text
|
||||
|
||||
|
||||
def decodedict(dict):
|
||||
|
Loading…
Reference in New Issue
Block a user