class documentation

class CreateTumorView(ViewLoggerMixin, LoginRequiredMixin, InstitutionCheckObjectMixin, generic.CreateView):

View In Hierarchy

Create a tumor and add it to a given patient.

Method form_valid After form validation, add the tumor to the given patient.
Method get_context_data Add this tumor's patient, the patient's tumor and diagnoses, as well as the currently performed action to the context dictionary.
Method get_success_url After successfull creation, redirect to the patient's detail view that also contains info about this tumor.
Class Variable action Undocumented

Inherited from InstitutionCheckObjectMixin (via ViewLoggerMixin):

Method test_func Undocumented
def form_valid(self, form):

After form validation, add the tumor to the given patient.

Parameters
form:TumorFormUndocumented
Returns
HttpResponseUndocumented
def get_context_data(self, **kwargs):

Add this tumor's patient, the patient's tumor and diagnoses, as well as the currently performed action to the context dictionary.

Parameters
**kwargs:AnyUndocumented
Returns
Dict[str, Any]Undocumented
def get_success_url(self):

After successfull creation, redirect to the patient's detail view that also contains info about this tumor.

Returns
strUndocumented
action: str =

Undocumented