def formfield(self, **kwargs):
        """
        Provide the custom form widget for the admin, since there
        isn't a form field mapped to ``GenericRelation`` model fields.
        """
        from yacms.generic.forms import KeywordsWidget
        kwargs["widget"] = KeywordsWidget
        return super(KeywordsField, self).formfield(**kwargs)
def formfield ( self , ** kwargs ) : from yacms . generic . forms import KeywordsWidget kwargs [ "widget" ] = KeywordsWidget return super ( KeywordsField , self ) . formfield ( ** kwargs )
Provide the custom form widget for the admin, since there
        isn't a form field mapped to ``GenericRelation`` model fields.