Two final-review follow-ups from the whole-feature code review: 1. Important: group-by was bucketing adj_page.object_list (the paginated 50-row slice), making 'By Type' group headers show misleading per-page totals once filters returned >50 rows. Konrad's current data is under the threshold, but the UI promised whole-filter totals. Fix: group_by runs on the full filtered queryset (list(adjustments)) BEFORE pagination. Template already branches on adj_groups, so we now additionally hide the pagination nav when grouped — the group headers act as their own navigation and their counts/sums reflect the whole filter not just one page. 2. Minor: Apply after picking 'By Worker' silently reset to Flat view because the filter form had hidden inputs for sort/order but not group_by. Added the missing <input type='hidden' name='group_by'> so the toggle round-trips across Apply. 65/65 tests still pass (no test changes — the previous tests' fixtures are all <50 rows so neither the bug nor the fix shows up there, but both behaviours are now correct).
Flatlogic Python Template Workspace
This workspace houses the Django application scaffold used for Python-based templates.
Requirements
- Python 3.11+
- MariaDB (or MySQL-compatible server) with the credentials prepared by
setup_mariadb_project.sh - System packages:
pkg-config,libmariadb-dev(already installed on golden images)
Getting Started
python3 -m pip install --break-system-packages -r requirements.txt
python3 manage.py migrate
python3 manage.py runserver 0.0.0.0:8000
Environment variables are loaded from ../.env (the executor root). See .env.example if you need to populate values manually.
Project Structure
config/– Django project settings, URLs, WSGI entrypoint.core/– Default app with a basic health-check route.manage.py– Django management entrypoint.
Next Steps
- Create additional apps and views according to the generated project requirements.
- Configure serving via Apache + mod_wsgi or gunicorn (instructions to be added).
- Run
python3 manage.py collectstaticbefore serving through Apache.
Description
Languages
JavaScript
42.5%
SCSS
41.7%
CSS
11.9%
Python
3.2%
HTML
0.6%