You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ Since version 1.0.0 (2025-06-12), this package also includes a another field typ
122
122
123
123
For this field to work, you need to include `jQuery <https://jquery.com/download/>`_ (already included in the Django admin) and `jQuery UI <https://jqueryui.com/download/>`_.
124
124
125
-
You can include them by updating the ModelAdmin’s form or directly in change_form.html (less efficient but faster), as shown in the `example project <https://github.com/goinnn/django-multiselectfield/blob/b7d113a4a1ad6b35698126729264942e30e30039/example/templates/admin/change_form.html#L11>`_.
125
+
You can include them by updating the ModelAdmin’s form or directly in change_form.html (less efficient but faster), as shown in the `example project: change_form.html line 11<https://github.com/goinnn/django-multiselectfield/blob/b7d113a4a1ad6b35698126729264942e30e30039/example/templates/admin/change_form.html#L11>`_.
126
126
127
127
1.5 Other recommendations
128
128
-------------------------
@@ -165,12 +165,12 @@ This fixes alignment. The labels appear slightly lower than the checkboxes, and
165
165
166
166
Include the following CSS file: multiselectfield/css/admin-multiselectfield.css
167
167
168
-
You can include it by updating the ModelAdmin’s form or directly in change_form.html (less efficient but faster), as shown in the `example project <https://github.com/goinnn/django-multiselectfield/blob/b7d113a4a1ad6b35698126729264942e30e30039/example/templates/admin/change_form.html#L7>`_.
168
+
You can include it by updating the ModelAdmin’s form or directly in change_form.html (less efficient but faster), as shown in the `example project: change_form.html line 7<https://github.com/goinnn/django-multiselectfield/blob/b7d113a4a1ad6b35698126729264942e30e30039/example/templates/admin/change_form.html#L7>`_.
169
169
170
170
2.3 Add a filter to the Django administration
171
171
----------------------------------------------
172
172
173
-
You can see it in `example project <https://github.com/goinnn/django-multiselectfield/blob/4ee111e11e2f3a51aa693c0863ee64d93b4a097d/example/app/admin.py#L23>`_
173
+
You can see it in `example project: admin.py line 23<https://github.com/goinnn/django-multiselectfield/blob/4ee111e11e2f3a51aa693c0863ee64d93b4a097d/example/app/admin.py#L23>`_
174
174
175
175
.. code-block:: python
176
176
@@ -239,7 +239,7 @@ Change them individually
239
239
240
240
If you have many django multiselect fields in list_display, the previous option can be much work.
241
241
242
-
You can see it in the `example project <https://github.com/goinnn/django-multiselectfield/blob/65376239ae7491414f896adb4d314349ff7c2667/example/app/apps.py#L34>`_.
242
+
You can see it in the `example project: apps.py line 34<https://github.com/goinnn/django-multiselectfield/blob/65376239ae7491414f896adb4d314349ff7c2667/example/app/apps.py#L34>`_.
243
243
244
244
This code is inspired by django code. It is possible that for other versions of Django you may need to adapt it.
245
245
@@ -285,7 +285,7 @@ This code is inspired by django code. It is possible that for other versions of
285
285
286
286
Django doesn't provide built-in support for custom fields.
287
287
288
-
You can see it in the `example project <https://github.com/goinnn/django-multiselectfield/blob/65376239ae7491414f896adb4d314349ff7c2667/example/app/apps.py#L52>`_. Log in to the Django admin in the sample project using the following credentials: user-readonly / DMF-123.
288
+
You can see it in the `example project: apps.py line 52<https://github.com/goinnn/django-multiselectfield/blob/65376239ae7491414f896adb4d314349ff7c2667/example/app/apps.py#L52>`_. Log in to the Django admin in the sample project using the following credentials: user-readonly / DMF-123.
289
289
290
290
This code is inspired by django code. It is possible that for other versions of Django you may need to adapt it.
0 commit comments