Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Weekday field for django models

Project description

status

A field that encapsulates the handling of selection of 0 or more weekday choices.

Uses Django’s CommaSeparatedIntegerField internally.

Usage:

from django.db import models

import weekday_field

class MyModel(models.Model):
weekdays = weekday_field.fields.WeekdayField()

There is also a BitwiseWeekdayFormField, contributed by Andrew Gall <housepage@gmail.com>, which stores the data in a single integer.

Thanks to NaderM <https://bitbucket.org/NaderM>, 1.1.0 includes python3 support, and extensive testing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-weekday-field, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django-weekday-field-1.1.0.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page