django-dob-widget
A Django date widget optimised for usability in entering dates of birth.
This is based on the guidelines put forward by the UK Government Digital Service at https://designnotes.blog.gov.uk/2013/12/05/asking-for-a-date-of-birth/
Usage:
from django import forms
from dobwidget import DateOfBirthWidget
class PersonModelForm(forms.ModelForm):
"""
Model form for people.
"""
class Meta(object):
model = Person
fields = ['name', 'date_of_birth']
widgets = {
'date_of_birth': DateOfBirthWidget(),
}
The DateOfBirthWidget can take an optional order parameter, to make it useful in non-UK jurisdictions:
class Meta(object):
model = Person
fields = ['name', 'date_of_birth']
widgets = {
'date_of_birth': DateOfBirthWidget(order='MDY'),
}
Changes
1.2.0
- Add support for Django 1.10
1.1.3
- Handle far future dates that raise OverflowError when given to datetime.date
1.1.2
- Do not clear inputs if an invalid date is entered
1.1.1
- Bug fix around character-based input
1.1.0
- Allow attrs of the individual subwidgets to be set using day_attrs, month_attrs and year_attrs.
1.0.0
- Initial release
Contributors
- "Matthew Wilkes" matt@matthewwilkes.name
- "Martin Sanders" martin@forwardpartners.com
Metadata
Release files for django-dob-widget 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-dob-widget-1.2.0.tar.gz | 3.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_dob_widget-1.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / django-dob-widget-1.2.0.tar.gz
| Download URL | django-dob-widget-1.2.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae7e03b15945fdf109d2e41a9f35607f5c4eadb28e8b8dbf800bab444eeabb2d
|
|
BLAKE2b-256 checksum How to use checksums |
9e05060ca1fdd6c79f0726848dfe20d030958c51c899cd2e98e575d038346189
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.17
|
Release files / django_dob_widget-1.2.0-py2.py3-none-any.whl
| Download URL | django_dob_widget-1.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1bb06eb5828b420805e550732f800aed8ca90cc5b262a5fbb6b6dc8c988ab076
|
|
BLAKE2b-256 checksum How to use checksums |
83fa11b9ebfbaa0ed6d297843039aab1648fdf9e89fd2c8ebb2bc02321898b16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.17
|
Security for django-dob-widget 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.