pharmaship.inventory.forms

Inventory application forms.

class pharmaship.inventory.forms.AddArticleForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Form used for adding an pharmaship.inventory.models.Article.

clean()

Check that a date is correct if needed by the model.

This method completes the standard validation method and adds a conditional check of the date through the perishable attribute. If True, an exp_date must be present and correct.

class pharmaship.inventory.forms.AddMedicineForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Form used for adding a pharmaship.inventory.models.Medicine.

class pharmaship.inventory.forms.AddNewSubitemForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Form used to add a new pharmaship.inventory.models.FirstAidKitItem.

clean()

Check that a date is correct if needed by the model.

This method completes the standard validation method and adds a conditional check of the date through the perishable attribute. If True, an exp_date must be present and correct.

class pharmaship.inventory.forms.AddSubitemForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Form used to add a pharmaship.inventory.models.FirstAidKitItem.

class pharmaship.inventory.forms.FirstAidKitForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Form used to modify a pharmaship.inventory.models.FirstAidKit.

class pharmaship.inventory.forms.InventorySettingsForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Form used to modify the inventory setting.

class pharmaship.inventory.forms.LocationForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Form used to add a pharmaship.inventory.models.Location.

class pharmaship.inventory.forms.ModifyArticleForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Form used for modifying an pharmaship.inventory.models.Article.

class pharmaship.inventory.forms.ModifyMedicineForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Form used for modifying a pharmaship.inventory.models.Medicine.

class pharmaship.inventory.forms.ModifySubitemForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Form used to modify a pharmaship.inventory.models.FirstAidKitItem.

clean()

Check that a date is correct if needed by the model.

This method completes the standard validation method and adds a conditional check of the date through the perishable attribute. If True, an exp_date must be present and correct.

class pharmaship.inventory.forms.RescueBagForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Form used to modify a pharmaship.inventory.models.RescueBag.