onny:notizen:programmierung
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| onny:notizen:programmierung [2026/08/18 11:23] – [mariadb / mysql] fdc9:281f:4d7:9ee9::1 | onny:notizen:programmierung [2026/10/06 19:56] (current) – [php] fdc9:281f:4d7:9ee9::1 | ||
|---|---|---|---|
| Line 676: | Line 676: | ||
| <code php> | <code php> | ||
| if ($config[' | if ($config[' | ||
| + | </ | ||
| + | |||
| + | check if string in array | ||
| + | |||
| + | <code php> | ||
| + | if (in_array(' | ||
| + | // trashbin was requested | ||
| + | } | ||
| </ | </ | ||
| ==== nextcloud app dev ==== | ==== nextcloud app dev ==== | ||
| Line 939: | Line 947: | ||
| AND (`componenttype` = ' | AND (`componenttype` = ' | ||
| ORDER BY `lastoccurence` DESC; | ORDER BY `lastoccurence` DESC; | ||
| + | </ | ||
| + | |||
| + | ==== django ==== | ||
| + | |||
| + | admin, searchable dropdown. plan field will be searchable. | ||
| + | |||
| + | <code python> | ||
| + | class GovernmentPlanUpdateAdmin(admin.ModelAdmin): | ||
| + | [...] | ||
| + | autocomplete_fields = [" | ||
| + | | ||
| + | [...] | ||
| + | |||
| + | class GovernmentPlanAdmin(admin.ModelAdmin): | ||
| + | form = GovernmentPlanForm | ||
| + | [...] | ||
| + | search_fields = (" | ||
| + | </ | ||
| + | |||
| + | ===== nix ===== | ||
| + | |||
| + | ====== lib ====== | ||
| + | |||
| + | remove prefix | ||
| + | |||
| + | <code nix> | ||
| + | stripped = | ||
| + | lib.removePrefix " | ||
| + | (lib.removePrefix " | ||
| </ | </ | ||
onny/notizen/programmierung.1787052238.txt.gz · Last modified: by fdc9:281f:4d7:9ee9::1
