squaresdb.gate.forms module¶
- class squaresdb.gate.forms.BulkSubForm(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, bound_field_class=None)[source]¶
Bases:
FormForm fields:
payment_type: Payment Type (ModelChoiceField)amount: Amount (DecimalField)notes: Notes (CharField)people: People (ModelMultipleChoiceField)
- property media¶
Return all media required to render the widgets on this form.
- payment_qs = QuerySet¶
- people_qs = QuerySet¶
- class squaresdb.gate.forms.NewPeriodForm(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)[source]¶
Bases:
ModelFormForm fields:
start_date: Start Date (DateField)end_date: End Date (DateField)time: Time (TimeField)season: Season (ChoiceField)name: Name (CharField)slug: Slug (SlugField)default_price_scheme: Default Price Scheme (ModelChoiceField)confirm: Confirm (BooleanField)
- clean()[source]¶
Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.
- confirm_help = 'Recommend leaving unchecked until you see the list of dates'¶
- property media¶
Return all media required to render the widgets on this form.
- price_qset = QuerySet¶
- seasons = ['fall', 'winter', 'spring', 'summer']¶
- class squaresdb.gate.forms.NewPeriodPriceForm(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)[source]¶
Bases:
ModelFormForm fields:
fee_cat: Fee cat (ModelChoiceField)low: Low (IntegerField)high: High (IntegerField)
- property media¶
Return all media required to render the widgets on this form.
- class squaresdb.gate.forms.SubPayAddForm(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)[source]¶
Bases:
ModelFormForm fields:
person: Person (ModelChoiceField)time: Time (DateTimeField)payment_type: Payment type (ModelChoiceField)amount: Amount (DecimalField)fee_cat: Fee cat (ModelChoiceField)notes: Notes (CharField)periods: Periods (ModelMultipleChoiceField)
- property media¶
Return all media required to render the widgets on this form.
- class squaresdb.gate.forms.SubUploadForm(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, bound_field_class=None)[source]¶
Bases:
FormForm fields:
file: File (FileField)sub_periods: Sub Periods (ModelMultipleChoiceField)
- property media¶
Return all media required to render the widgets on this form.
- sub_periods_help = 'Allowed sub periods in upload. (Note: error handling if others appear is bad.)'¶
- sub_periods_qs = QuerySet¶
- class squaresdb.gate.forms.SubscriptionLineItemForm(*args, **kwargs)[source]¶
Bases:
ModelFormForm fields:
sub_period: Sub period (ModelChoiceField)subscriber_name: Subscriber name (CharField)amount: Amount (DecimalField)ignore_warnings: Ignore Warnings (BooleanField)
- property media¶
Return all media required to render the widgets on this form.