Commit Graph

44 Commits

Author SHA1 Message Date
Guido 0562aafd78 Corregge l'ordine di caricamento del JS del filtro
Il JS del filtro va accodato agli asset del widget nella stessa lista Media,
non in un forms.Media separato: aggiunto a parte, il merge di Django lo
collocava prima di jquery.init.js (django.jQuery non ancora definito) e gli
handler non si agganciavano, quindi selezionando dalla tendina il filtro non
veniva applicato. Regressione introdotta in 55a1592.
2026-06-21 14:30:22 +02:00
Guido cf146c3b55 Evita errore con i facet (?_facets=True)
Il tag admin_list_filter valuta sempre list(spec.choices(cl)) anche se il
template del filtro renderizza il widget autocomplete e ignora le opzioni.
Con i facet attivi, choices() tentava il conteggio iterando su
BLANK_CHOICE_DASH (pk vuoto), causando
"Field 'id' expected a number but got ''".

Il filtro autocomplete non enumera le opzioni: choices() ora ritorna un
elenco vuoto, così i facet (non applicabili a questo filtro) non rompono
piu la changelist.
2026-06-19 18:00:13 +02:00
Guido 49fcd8fb7d Documenta installazione dal fork git Briq e le differenze del fork
- Installazione via dipendenza git (Poetry classico e PEP 621), coerente con
  i deployment Briq, al posto del pip install da PyPI.
- Nota sulle differenze: media locale-aware e reset della paginazione.
2026-06-19 17:42:00 +02:00
Guido 55a1592ac4 Media dinamici locale-aware e reset paginazione nel filtro
- I media di jQuery/select2/autocomplete sono derivati dal widget
  AutocompleteSelect invece che da una lista hard-coded: si caricano i
  percorsi corretti per la versione di Django e la traduzione del select2
  nella lingua attiva (prima veniva forzata la i18n turca, lasciando il
  widget in inglese).
- Il JS esclude il parametro "p" nella ricostruzione della querystring:
  cambiando filtro la paginazione torna a pagina 1, come i link filtro
  standard dell'admin, evitando "pagina senza risultati".
2026-06-19 17:39:43 +02:00
Guido 6dcbf7fdea con l'ultima versione di django senza questo si vede html al posto del rendering 2024-03-11 00:59:36 +01:00
Guido 2ff66842c2 chi ca** è vigo??? 2023-02-10 21:14:55 +01:00
davide_borgonovo 38f7655bc9 Aggiunta una try except su import di una funzione di django deprecata 2022-03-23 10:07:57 +01:00
Pietro dc16fa3ccf fix giga query; inc versione 2021-10-15 19:58:24 +02:00
Guido f8066e4b72 incremento versione 2021-08-14 23:01:17 +02:00
Guido 6d939d67f2 questo widget ha il brutto vizio di attivarsi anche fuori dal list view. Questo bugfix fa ricomparire i pulsantini di editing a fianco dei field autocompletabili nel change view. 2021-08-14 23:00:32 +02:00
Guido 562d481f0d faccio un po' di pulizia 2021-07-25 11:52:11 +02:00
Guido 9fa357f8b7 quasi dimenticavo di incrementare la versione 0.2.1+briq 2021-07-25 11:44:18 +02:00
Guido ce6742c047 MA COME FACEVA A FUNZIONARE PRIMAAA!?!?!?!? 2021-07-25 11:41:28 +02:00
Guido 891ca6a71d +briqness per tutti 2021-07-21 13:46:03 +02:00
Guido b669d330a5 briqness 2021-07-21 13:44:02 +02:00
Guido fd9202d025 così funziona VERAMENTE 2021-07-19 10:43:23 +02:00
Guido 7228f3eb5a Django 3 compatibility changes 2021-07-17 22:09:38 +02:00
Adam Fast afb3f4b9fe Merge pull request #3 from adamfast/fix-filter
I put the dollarsign in the wrong place. It should go on the field, n…
2020-04-17 15:35:01 -05:00
Adam Fast 3224bee4bf I put the dollarsign in the wrong place. It should go on the field, not in the value 2020-04-17 15:32:35 -05:00
Joseph Bane f2c99f214d Merge pull request #2 from adamfast/fix-filter
The field being named with the field name means we should be doing an "endswith" jQuery selector, without that the field isn't found and a Javascript console error fires.
2020-04-17 15:55:58 -04:00
Adam Fast af41554c25 The field being named with the field name means we should be doing an "endswith" jQuery selector, without that the field isn't found and a Javascript console error fires. 2020-04-17 14:47:50 -05:00
Joseph Bane a1de4561ca Merge pull request #1 from adamfast/supply-form-prefix
By specifying a prefix of the field's name on each Autocomplete form multiple autocomplete filters can be put on the page. Without this, all fields are named/IDed autocomplete_field and there's a collision.
2020-04-16 13:33:06 -04:00
Adam Fast deb9ebd33c Update setup.py
Update version to acknowledge change
2020-04-16 12:25:16 -05:00
Adam Fast e89a3886de By specifying a prefix of the field's name on each Autocomplete form, multiple autocomplete filters can be put on the page. Without this, all fields are named/IDed autocomplete_field and there's a collision. 2020-04-16 12:17:06 -05:00
Joseph Bane d4ad56181a Version 0.1.4.
* Django dropped 'staticfiles' in templates. Use 'static' instead.
2020-03-24 16:58:55 -04:00
Uğur Özyılmazel da8decc87a Bump version: 0.1.2 → 0.1.3 2019-10-25 10:21:51 +03:00
Uğur Özyılmazel fbc183de3b Fix f-string problem 2019-10-25 10:20:46 +03:00
Uğur Özyılmazel e5c69ef51f Bump version: 0.1.1 → 0.1.2 2019-10-19 20:58:25 +03:00
Uğur Özyılmazel 011ba7aec0 Fix version check 2019-10-19 20:58:21 +03:00
Uğur Özyılmazel bab439efee Add missing information to change log 2019-10-19 20:47:28 +03:00
Uğur Özyılmazel d34363e648 Bump version: 0.1.0 → 0.1.1 2019-10-19 20:41:10 +03:00
Uğur Özyılmazel 7d262d331c Add demo animation gif 2019-10-19 20:40:53 +03:00
Uğur Özyılmazel 80bfad594a Merge branch 'maestrofjp-master' 2019-10-19 20:17:56 +03:00
Uğur Özyılmazel 795ddf92be Add WillRemoveInVersion10 warning 2019-10-19 20:16:10 +03:00
Peter Farrell bd6fb1a93d Removed f-strings as they are not supported on Python 3.5 2019-10-17 16:34:09 -05:00
Uğur Özyılmazel 873551e3d8 Fix image urls 2019-10-11 16:28:49 +03:00
Uğur Özyılmazel 8f10b72ddc Add link to screenshots 2019-10-11 16:23:00 +03:00
Uğur Özyılmazel 0a200f450f Add MANIFEST file and update README file 2019-10-11 13:37:19 +03:00
Uğur Özyılmazel cd86540a90 Add linter, checker configurations 2019-10-11 10:34:01 +03:00
Uğur Özyılmazel 90c11a8d32 Add ManyToMany and ForeignKey support 2019-10-11 10:33:41 +03:00
Uğur Özyılmazel be63ad16d3 Add screenshots 2019-10-11 10:33:03 +03:00
Uğur Özyılmazel 4ca3435f3d POC works 2019-10-10 17:16:21 +03:00
Uğur Özyılmazel ca26ca3620 Add python package scaffold 2019-10-07 14:54:39 +03:00
Uğur Özyılmazel 5aed43038b [root] Initial commit 2019-10-07 10:45:26 +03:00