Files @ 2aae2af55dea
Branch filter:

Location: symposion_app/vendor/symposion/sponsorship/apps.py

James Polley
Disable client-side validation on credit_note forms

* HTML5 browsers have some clevers to do client-side validation of
forms
* Django activates this by default for certain field types
* However, in this case, there are three forms on this page. We rely
on two of them being invalid in order to figure out what processing
to do.
* So we need to disable the client-side validation.
1
2
3
4
5
6
7
8
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _


class SponsorshipConfig(AppConfig):
    name = "symposion.sponsorship"
    label = "symposion_sponsorship"
    verbose_name = _("Symposion Sponsorship")