Skip to content

Pike/django-durationRel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A time-dependent mapping for django models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages