Archives September 2011
Since there is a 4-year old still-open ticket on this, thought I'd provide a simple recipe for getting a coverage report on your Django project:
pip install coverage
coverage run path/to/django-admin.py test myapp
coverage report -m --include="*myapp*"
coverage erase # clean up afterward/between runs
Sure, it's not --with-coverage, but it does seem to work.
The choices_for_FOO hook would allow a model to restrict the choices for a given field based on e.g. another field (common requirement where you have row-level authorization and need to restrict choices to the set of records accessible by the auth-row attached to this object). It's currently a patch attached to a 5 year old ...
- Sept. 1, 2011
- Sept. 5, 2011
- Sept. 6, 2011
- Sept. 11, 2011
- Sept. 12, 2011
- Sept. 13, 2011
- Sept. 22, 2011
- Sept. 25, 2011
- Sept. 27, 2011
- Sept. 28, 2011