def create_object(self, text):
if self.create_field == '<STR_LIT>':<EOL><INDENT>firstName = text.split('<STR_LIT:U+0020>')[<NUM_LIT:0>]<EOL>lastName = '<STR_LIT:U+0020>'.join(text.split('<STR_LIT:U+0020>')[<NUM_LIT:1>:])<EOL>return self.get_queryset().create(**{'<STR_LIT>': firstName, '<STR_LIT>': lastName})<EOL><DEDENT>else:<EOL><INDENT>return super(StaffMemberAutoComplete,self).create_object(text)<EOL><DEDENT>
Allow creation of staff members using a full name string.