django-advanced-filters icon indicating copy to clipboard operation
django-advanced-filters copied to clipboard

Operator/value can be pre-determined/selected by field type

Open asfaltboy opened this issue 9 years ago • 3 comments

For example, a boolean field can be only true/false (yes/no) displayed by a radio button widget, a choice field with e.g 2-5 choices can be "one of" displayed by a multi-select checkbox widget.

For examples, see Django's ticket system: screen shot 2016-04-21 at 9 20 25 am

Django uses trac's "custom" query feature: screen shot 2016-04-21 at 10 00 44 am

Which use a different UI for and/or selection, and also allow grouping by a field, (which can be it's own feature by the way): screen shot 2016-04-21 at 10 03 05 am

asfaltboy avatar Apr 21 '16 08:04 asfaltboy

@asfaltboy do you know if there are any inflight branches for this, or should we go ahead and start from scratch?

mrname avatar Jun 11 '18 20:06 mrname

Sorry @mrname, I looked through our branches I have and I don't see any work in progress.

To reduce the work time, I suggest we start by tackling a single (or couple) of field types. For example a "limited choice field" (boolean or below 4 choices) which will render without operator (implicit) and the choices as radio buttons.

asfaltboy avatar Jun 11 '18 21:06 asfaltboy

Sounds good, thanks @asfaltboy !

mrname avatar Jun 11 '18 21:06 mrname