[Django] #31602: Add conditions to the forms

4 views
Skip to first unread message

Django

unread,
May 18, 2020, 6:36:39 AM5/18/20
to django-...@googlegroups.com
#31602: Add conditions to the forms
---------------------------------------+------------------------
Reporter: Arman1382 | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------+------------------------
Hi.
I’ve been working on a pytorch condition that confirms the SSN, name and
etc. but then I realized that django doesn’t have that feature (yet). What
really would help me and other web developers is adding conditioning
methods to the forms. Because I’m dealing with this problem everyday.

--
Ticket URL: <https://code.djangoproject.com/ticket/31602>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 18, 2020, 6:57:37 AM5/18/20
to django-...@googlegroups.com
#31602: Add conditions to the forms.
-----------------------------+--------------------------------------

Reporter: Arman1382 | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------

Comment (by felixxm):

Can you be more precise? I'm not sure what kind of feature you're
proposing.

--
Ticket URL: <https://code.djangoproject.com/ticket/31602#comment:1>

Django

unread,
May 18, 2020, 9:43:10 AM5/18/20
to django-...@googlegroups.com
#31602: Add conditions to the forms.
-----------------------------+--------------------------------------
Reporter: Arman1382 | Owner: nobody
Type: New feature | Status: closed
Component: Forms | Version: master
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Changes (by Simon Charette):

* status: new => closed
* resolution: => invalid


Comment:

I think that what you are looking for is the [https://github.com/django
/django-localflavor localflavor] package which exposes per-locale
validation primitives.

e.g. [https://django-
localflavor.readthedocs.io/en/latest/localflavor/us/#localflavor.us.models.USSocialSecurityNumberField
USSocialSecurityNumberField]

--
Ticket URL: <https://code.djangoproject.com/ticket/31602#comment:2>

Reply all
Reply to author
Forward
0 new messages