New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ezform

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ezform

simple extensions to Django form

  • 2020.8.6
  • PyPI
  • Socket score

Maintainers
1

ezform

simple extensions to Django forms

Usage

from ezform.fields import DateRangeField

class MyForm(Form):
   range = DateRangeField()

Advanced Usage

  1. 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
  1. add required configuration to project settings:
# mywebapp.settings
EZFORM_SETTING = {
    'SKIP_LIST': 'myapp.MySkipDate'
}
  1. 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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc