Code example used in the tutorial How to Implement Grouped Model Choice Field.
First, clone the repository to your local machine:
git clone https://github.com/sibtc/django-grouped-choice-field-example.git
Install the requirements:
pip install -r requirements.txt
Apply the migrations:
python manage.py migrate
Finally, run the development server:
python manage.py runserver
The site will be available at 127.0.0.1:8000.
The source code is released under the MIT License.