ezform
simple extensions to Django forms
Usage
from ezform.fields import DateRangeField
class MyForm(Form):
range = DateRangeField()
Advanced Usage
- declare a concrete data model:
# myapp.models
from ezform.models import Date
class MySkipDate(Date):
class Meta:
abstract = False
and update DB schema:
export DJANGO_SETTINGS_MODULE=mywebapp.settings
django-admin makemigrations
django-admin migrate
- add required configuration to project settings:
# mywebapp.settings
EZFORM_SETTING = {
'SKIP_LIST': 'myapp.MySkipDate'
}
- get day counts:
import datetime
from ezform.utils import DayCount
day_count = DayCount(
datetime.date(2019, 12, 15),
datetime.date(2020, 1, 6)
).do()
Bylaws
Copyright 2016-2023 Xingeng Chen
License: Apache License 2.0
Metadata
Release files for ezform 2020.8.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ezform-2020.8.6-py3-none-any.whl | Python 3 | none | any | Details for ezform-2020.8.6-py3-none-any.whl |
Release files / ezform-2020.8.6-py3-none-any.whl
| Download URL | ezform-2020.8.6-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9051d64700a70a216824bbfb236337a0a5cdcfbd552d2be367c86dab50f33c49
|
|
BLAKE2b-256 checksum How to use checksums |
24b74567bb0b6ec39e7a751feb5a5f6b921db69a3079b75ab4a1f63215f26bb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.2
|
Security for ezform 2020.8.6
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.