A time-dependent mapping for django models.
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
django_durationRel
.gitignore
LICENSE
README.rst
setup.py

README.rst

django-durationRel models a time-dependent relation between two django models.

Usage

In your models.py:

class MyModel(models.Model):
  pass
class OtherModel(models.Model):
  mys = DurationField(MyModel)

See also tests/models.py and tests/tests.py.

Tests

You can run the tests from the parent dir with:

django-admin.py test --settings=django_durationRel.tests.settings

They're using a sqlite3 in-memory database.

To run the tests with test coverage first make sure you have coverage installed:

django-admin.py test --settings=django_durationRel.tests.coverage_settings

License

django-durationRel is under BSD license.