class documentation

class TumorForm(FormLoggerMixin, forms.ModelForm):

View In Hierarchy

Form to create and edit tumors, based on their model definition. Very straightforward, not much custom validation. This class basically just defines how some of the fields that are already defined in models.Tumor should appear in the HTML form.

Class Meta Specifies the corresponding model.
Method clean_volume Process the input for volume size.
Method save Save tumor to existing patient.
def clean_volume(self):

Process the input for volume size.

def save(self, commit=True):

Save tumor to existing patient.