code: def create(cls):
          
  
          class NewPopupCreateView(PopupCreateView, cls.parent_class):
              model = cls.model
              form_class = cls.form_class
              popup_name = cls.get_class_verbose_name()
              template_name = cls.get_template_name_create()
              permission_required = cls.get_permission_required('create')
  
              def get_context_data(self, **kwargs):
                  kwargs.update(cls.context_for_all)
                  kwargs.update(cls.context_for_create)
                  return super(NewPopupCreateView, self).get_context_data(**kwargs)
  
          return NewPopupCreateView
docs: Returns the create view that can be specified as the second argument
          to url() in urls.py.