mirror of
https://github.com/Hopiu/django-select2.git
synced 2026-03-16 21:40:23 +00:00
Django's ForeignKey supports custom to_fields. The to field is the primary key by default, but can be modified. The to field is also used by forms to reduce database lookups. This patch add support for custom to_field names on both model or form layer. |
||
|---|---|---|
| .. | ||
| static/django_select2 | ||
| __init__.py | ||
| apps.py | ||
| cache.py | ||
| conf.py | ||
| forms.py | ||
| urls.py | ||
| views.py | ||