(cls, keyword, contact)
return cls.objects.create(
            domain=keyword.domain,
            date=datetime.utcnow(),
            source=cls.SOURCE_KEYWORD,
            source_id=keyword.couch_id,
            content_type=content_type,
            app_id=app_id,
            form_unique_id=form_unique_id,
            form_name=form_name,
            status=cls.STATUS_IN_PROGRESS,
            recipient_type=recipient_type,
            recipient_id=contact.get_id if recipient_type else None
        )
keyword - the keyword object
        contact - the person who initiated the keyword
keyword - the keyword object
        contact - the person who initiated the keyword
keyword - the keyword object contact - the person who initiated the keyword
def create_from_keyword(cls, keyword, contact):
        """
        keyword - the keyword object
        contact - the person who initiated the keyword
        """
        content_type, app_id, form_unique_id, form_name = cls.get_content_info_from_keyword(keyword)
        recipient_type = cls.get_recipient_type(contact)

        return cls.objects.create(
            domain=keyword.domain,
            date=datetime.utcnow(),
            source=cls.SOURCE_KEYWORD,
            source_id=keyword.couch_id,
            content_type=content_type,
            app_id=app_id,
            form_unique_id=form_unique_id,
            form_name=form_name,
            status=cls.STATUS_IN_PROGRESS,
            recipient_type=recipient_type,
            recipient_id=contact.get_id if recipient_type else None
        )
def create_from_keyword ( cls , keyword , contact ) : content_type , app_id , form_unique_id , form_name = cls . get_content_info_from_keyword ( keyword ) recipient_type = cls . get_recipient_type ( contact ) return cls . objects . create ( domain = keyword . domain , date = datetime . utcnow ( ) , source = cls . SOURCE_KEYWORD , source_id = keyword . couch_id , content_type = content_type , app_id = app_id , form_unique_id = form_unique_id , form_name = form_name , status = cls . STATUS_IN_PROGRESS , recipient_type = recipient_type , recipient_id = contact . get_id if recipient_type else None )