code: def get_fk_popup_field(cls, *args, **kwargs):
          
          kwargs['popup_name'] = cls.get_class_verbose_name()
          kwargs['permissions_required'] = cls.permissions_required
          if cls.template_name_fk is not None:
              kwargs['template_name'] = cls.template_name_fk
          return ForeignKeyWidget('{}_popup_create'.format(cls.get_class_name()), *args, **kwargs)
docs: generate fk field related to class wait popup crud