Model and andmin for management opening hours
- Ondrej Sika, http://ondrejsika.com, [email protected]
- Python Package Index: http://pypi.python.org/pypi/django-opening-hours
- GitHub: https://github.com/sikaondrej/django-opening-hours
Instalation is very simple over pip.
pip install django-opening-hours
settings.py
INSTALLED_APPS += ("opening_hours", )
myapp/models.py
from django.db import models
from opening_hours.db_fields import OpeningHoursField
class Store(model.Model):
name = models.CharField(max_length=255)
opening_hours = OpeningHoursField()