childcount.fields

Useful form fields and widgets for dealing with health IDs.

class childcount.fields.HealthIdField(required=True, widget=None, label=None, initial=None, help_text=None, error_messages=None, show_hidden_initial=False)[source]

A form field for health IDs that does validation of an inputted health ID against the existing IDs in the database.

widget

alias of HealthIdWidget

class childcount.fields.HealthIdWidget(attrs=None)[source]

Defines a widget for health IDs that looks like normal text input box but displays health IDs nicely.

class childcount.fields.PatientForm(*args, **kwargs)[source]

A Django form for editing childcount.models.Patient objects. Uses the custom health ID input fields.

Previous topic

childcount.exceptions

Next topic

childcount.forms

This Page