New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: Alphabetical sort for ModelAdmin FK fields for Component, Product and Version #633

Closed
chenchangjiang opened this Issue Nov 27, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@chenchangjiang
Copy link

chenchangjiang commented Nov 27, 2018

Description of problem

Difficult to find expected items from drop-down menu when creating component, product or versions in management page

Version or commit hash (if applicable)

6.2.1, I try it on https://demo.kiwitcms.org/

Steps to Reproduce

Try to add Component, Product, Versions in admin -- everything else --management page
Component:
Product filed
Initial owner filed
Initial qa contact filed

Product:
Classification filed

Versions:
Product filed

Actual results

Difficult to find expected items from drop-down menu for step 1 filed, so many items

Expected results

My suggestion is that items should be in alphabetical order, e.g. a b c d...then it easy to find

Additional info (Python traceback, logs, etc.)

111

@atodorov atodorov changed the title Difficult to find expected items from drop-down menu when creating component, product or versions in management page RFE: Alphabetical sort for ModelAdmin FK fields for Component, Product and Version Nov 29, 2018

@atodorov

This comment has been minimized.

Copy link
Member

atodorov commented Nov 29, 2018

These are automatically generated forms by Django. The sorting of these fields can be overriden as shown here:
https://docs.djangoproject.com/en/2.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_foreignkey

ivo0126 added a commit to ivo0126/Kiwi that referenced this issue Jan 16, 2019

Sort ModelAdmin FK fields alphabetically
for the for Component, Product and Version fields.
Fixes kiwitcms#633

ivo0126 added a commit to ivo0126/Kiwi that referenced this issue Jan 22, 2019

Sort ModelAdmin FK fields alphabetically
for the Component, Product and Version fields.
Fixes kiwitcms#633

ivo0126 added a commit to ivo0126/Kiwi that referenced this issue Jan 23, 2019

Sort ModelAdmin FK fields alphabetically
for the Component, Product and Version fields.
Fixes kiwitcms#633

ivo0126 added a commit to ivo0126/Kiwi that referenced this issue Jan 23, 2019

Sort ModelAdmin FK fields alphabetically
for the Component, Product and Version fields.
Fixes kiwitcms#633

ivo0126 added a commit to ivo0126/Kiwi that referenced this issue Jan 24, 2019

Sort ModelAdmin FK fields alphabetically
for the Component, Product and Version fields.
Fixes kiwitcms#633

ivo0126 added a commit to ivo0126/Kiwi that referenced this issue Jan 24, 2019

Sort ModelAdmin FK fields alphabetically
for the Component, Product and Version fields.
Fixes kiwitcms#633

ivo0126 added a commit to ivo0126/Kiwi that referenced this issue Jan 24, 2019

Sort ModelAdmin FK fields alphabetically
for the Component, Product and Version fields.
Fixes kiwitcms#633

ivo0126 added a commit to ivo0126/Kiwi that referenced this issue Jan 24, 2019

Sort ModelAdmin FK fields alphabetically
for the Component, Product and Version fields.
Fixes kiwitcms#633

ivo0126 added a commit to ivo0126/Kiwi that referenced this issue Jan 25, 2019

Sort ModelAdmin FK fields alphabetically
for the Component, Product and Version fields.
Fixes kiwitcms#633

atodorov added a commit that referenced this issue Jan 25, 2019

Sort ModelAdmin FK fields alphabetically
for the Component, Product and Version fields.
Fixes #633
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment