1. Matthew Schinckel
  2. django-weekday-field

Source

django-weekday-field /

Filename Size Date modified Message
weekday_field
59 B
Cleanup tox.ini
141 B
Added tag 1.1.0 for changeset d2756eda3727
112 B
Updated my name in the authors list
1.5 KB
Bump version, add LICENSE and AUTHORS files.
705 B
Bump version, add LICENSE and AUTHORS files.
4 B
Added tests for the fields, forms, and widgets in this module
1.1 KB
Added tests for the fields, forms, and widgets in this module
731 B
Bump version, add LICENSE and AUTHORS files.
211 B
Cleanup tox.ini

django-weekday-field

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.