@classmethod<EOL><INDENT>def create(cls, fields=None, **fields_kwargs):<DEDENT>
<EOL>instance = cls(fields, **fields_kwargs)<EOL>instance.save()<EOL>return instance<EOL>
create an instance of cls with the passed in fields and set it into the db

fields -- dict -- field_name keys, with their respective values
**fields_kwargs -- dict -- if you would rather pass in fields as name=val, that works also