@classonlymethod<EOL><INDENT>def get_fk_popup_field(cls, *args, **kwargs):<DEDENT>
kwargs['<STR_LIT>'] = cls.get_class_verbose_name()<EOL>kwargs['<STR_LIT>'] = cls.permissions_required<EOL>if cls.template_name_fk is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = cls.template_name_fk<EOL><DEDENT>return ForeignKeyWidget('<STR_LIT>'.format(cls.get_class_name()), *args, **kwargs)<EOL>
generate fk field related to class wait popup crud