mirror of
https://github.com/django/django.git
synced 2025-07-02 08:49:14 +00:00
field_for_model() now has an additional keyword argument, apply_limit_choices_to, allowing it to continue to be used to create form fields dynamically after ModelForm.__init__() is called. Thanks Tim Graham for the review. Backport of a1be12fe193c8f3de8a0b0820f460a302472375f from master
To run the test suite, first, create and activate a virtual environment. Then install some requirements and run the tests:: $ cd tests $ pip install -e .. $ pip install -r requirements/py3.txt # or py2.txt $ ./runtests.py For more information about the test suite, see https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/.