Changelog

What changed, and why

FastFort follows Semantic Versioning since 1.0: a breaking change waits for a major release, and a minor one warns first. Before 1.0, a minor release could break things; those are listed under a Breaking heading.

The authoritative file is CHANGELOG.md in the repository. This page is also a feed, built from the same array it renders — so a subscriber and a reader cannot be told different things.

1.3.0

Rich text without a second file: name the editor, and FastFort starts it under its own CSP and draws it in the admin's palette. Plus screenshots in the README.

Added

  • A rich-text editor started by FastFort. UISettings.richtext_editor ("ckeditor5" or "tinymce") names the editor richtext_url loads, and FastFort serves the call that starts it on every richtext field — fastfort-richtext.js, from its own origin, after the editor's script. Before, an editor's script only defined the editor, and under a CSP with no inline script a project had to host a second file of its own just to call create(). CKEditor 5's UMD build (42+) and its older prebuilt builds are both recognised; richtext_license_key passes a commercial key, "GPL" otherwise. The textarea stays what submits, so a CDN that does not answer leaves a working form. Set without richtext_url, it is a start-up error.
  • CKEditor 5 is drawn in the admin's palette — surface, borders, text, accent, radius — so it follows the theme and dark mode instead of being a white box.
  • README screenshots from the live demo, light and dark.
  • The whole-front-end budget rises to 103,000 bytes for the editor glue and its palette; the everyday page is unchanged.

1.2.0

A security release. Refresh tokens are now checked against the account they were issued for and stop at an absolute lifetime; CSV exports cannot carry a spreadsheet formula; the XLSX importer's entity guard can no longer be walked around. Upgrading is recommended for every deployment with auth.api_enabled or with importable models. Minor rather than patch only because it adds one setting, refresh_token_max_age; nothing is removed or renamed.

Added

  • AuthSettings.refresh_token_max_age — see above.

Fixed

  • Refresh tokens outlived the account they were issued for. /auth/refresh checked only that the token had not been spent, so it went on minting access tokens for an account that had been deactivated or deleted, and survived a password change — browser sessions were signed out by the password stamp, API sessions were not. A refresh now loads the account and is refused, with the family revoked, unless it is still active and carries the same password stamp as when the chain began. Tokens issued by 1.1.1 carry no stamp and are checked for an active account only, so the upgrade signs no client out. Found in an audit of refresh rotation prompted by an outside report.
  • A rotated refresh chain had no end. Each refresh set a fresh refresh_token_ttl, so a stolen token kept alive by the thief lived for as long as the thief kept refreshing it. The original sign-in time now travels through every rotation (ath), and no chain outlives the new refresh_token_max_age (90 days by default, never less than refresh_token_ttl).
  • CSV export did not defuse spreadsheet formulas (CWE-1236). A cell starting with =, +, -, @, a tab or a carriage return is written with a leading ', OWASP's recipe; the CSV importer takes it off again, so an export uploaded back is the data that was exported. XLSX was never affected.
  • The XLSX importer's entity guard could be walked past. It searched the first 4 KB for <!DOCTYPE, so a long comment before the declaration, or a part encoded as UTF-16, reached the parser and expanded nested entities ("billion laughs"). The declaration is now refused by expat itself, at any offset and in any encoding.
  • Date fields in the filter panel, in list_editable cells and in inline rows opened the browser's own calendar while every form opened the admin's; they now all draw the same picker.
  • fastfort check --deploy now says that with rotate_refresh_tokens=False /auth/logout cannot revoke a token.

1.1.1

The map beside a MULTIPOINT field draws its points, and the README stops recommending a tile source that now requires a key.

Fixed

  • A MULTIPOINT field's map drew nothing and opened on the whole world. The editor's WKT reader unwrapped only the outer brackets of MULTIPOINT((1 2), (3 4)) — the form PostGIS writes and the admin renders — and read the rest as one unparseable coordinate. Each member is now unwrapped on its own; the unbracketed MULTIPOINT(1 2, 3 4) still reads.
  • Even once read, a MULTIPOINT drew no points: it is display-only, and the map drew only outlines, which a set of points does not have. Its members — and any POINT inside a GEOMETRYCOLLECTION — are now drawn as dots.
  • The README recommended CARTO's basemaps as a tile source; they now answer a request without an API key with an "API KEY REQUIRED" picture. Removed, with a note to check a tile by eye rather than by status code.

1.1.0

Django's form and list conveniences: the save buttons, save_as and save_on_top, date_hierarchy, prepopulated_fields and empty_value_display. Every one is a new option defaulting to what the admin already did, so no existing project changes by upgrading.

Added

  • Save buttons, the Django set. Every form now offers Save and add another and Save and return to list beside the plain save, which still stays on the record. One posted field, _save, carries the choice; an unknown value falls back to the plain save rather than failing after the write. A popup keeps only the plain save.
  • ModelAdmin.save_as — Save as new on the change form: the edited values become a new row and the original is not written. Refused at start-up beside inlines, whose posted children belong to the original; and a hand-posted _save=asnew to an admin without it is an ordinary save.
  • ModelAdmin.save_on_top — the same buttons above a long form as well.
  • ModelAdmin.date_hierarchy — Django's drill-down bar above the list: the years the column spans, then a year's months, then a month's days. Each level is a __gte/__lt filter pair that ListQuery.from_params already validates, so there is no new query-string surface, the drill survives a search, a live update and an export, and it works with scripting off. Costs two queries (the earliest and latest value); buckets are not counted. Month names are translated in every catalogue.
  • ModelAdmin.prepopulated_fields — {"slug": ("title",)} fills the slug as the title is typed, on the add form only (rewriting a published slug breaks every link to it). Typing into the slug stops the filling; apostrophes vanish rather than becoming a dash, so "O'zbekiston" becomes ozbekiston. A plain text box without script. The target must be a writable one-line string column, checked at start-up.
  • ModelAdmin.empty_value_display — what an empty value reads as in the list and in read-only fields, in place of the dash.
  • The front-end budgets rise to 78,000 bytes (everyday page) and 100,000 (everything), for the date bar's stylesheet and the slug script.

1.0.0

The first stable release. Nothing in the API changed from 0.8.1: what changed is the promise. From here a name in the public API is removed only in a major version, after a minor release that warns -- see Versioning in the README.

Added

  • Classified Production/Stable on PyPI. The README's pre-1.0 warning is replaced by a Versioning section stating what the public API is, and tests/unit/test_public_names.py fails when a name in it disappears.
  • Security fixes now go to the latest 1.x minor release; 0.x is no longer supported (SECURITY.md).
  • The trailing-slash fix, the sentence-case fix and the map Referer fix from 0.8.x, and README guidance on choosing a tile server.

Fixed

  • The minimum pyjwt is now 2.15.1 and the compression extra's brotli 1.2.1. Older versions in the allowed range carry published advisories, and a floor below them let a fresh install resolve one. The lockfile also moves certifi, dnspython and urllib3 past their advisories; pip-audit in CI is clean again.

0.8.1

Two fixes found by using the demo: a trailing slash no longer hides the add page, and Uzbek sentences that open on a model name start with a capital.

Fixed

  • A sentence that opens on the model name -- Uzbek's "{name} ro'yxatiga qaytish", among others -- started in lower case ("routes ro'yxatiga qaytish"), because the name is lower-cased to sit mid-sentence in English. The rendered sentence now gets an upper-case first letter, and nothing else in it changes.
  • /admin/<model>/add/, /export/ and /import/ -- the trailing-slash form a Django hand types first and a browser offers from history -- answered 404: the change route read them as the row whose key is "add". They now redirect (307, query string kept) to the page they name.

0.8.0

Favourites and an audit log: the admin now remembers what each account keeps coming back to, and what every account changed.

Added

  • Favourites — FavoriteMixin and fort.enable_favorites(Favorite). A star on every list row and change form, and a Favourites page in the sidebar collecting what the signed-in account starred, grouped by model. One table serves every registered model: the target is the registry key plus the ~-joined primary key, the same pair an admin URL carries. Nothing cascades from a row to its stars, so both sides are covered: an AFTER_DELETE listener clears the stars of anything the admin deletes, and every read skips a target that no longer resolves, so a row removed by a migration cannot surface as a broken link. The star is a plain submit button and works with JavaScript off; the script answers the press in place. 200 stars per account.
  • Audit log — AuditEntryMixin and fort.enable_audit_log(AuditEntry), in fastfort/contrib/audit.py. Every create, change and delete the admin makes is recorded with who, when, the address, and a before/after diff of the fields that actually changed. Each record gains a History page, and the sidebar an Activity feed. Nothing is written for a save that changed nothing, a sensitive column is never written, and a failed write to the log is logged rather than raised — the change it describes has already committed. Roadmap item 3.2 is complete.
  • Backend.snapshot(model, obj, key=...) — ModelAdapter.snapshot without a unit of work, for a hook listener that has a row but no transaction.
  • Breaking: The Backend protocol gained snapshot(model, obj, *, key). Both shipped backends implement it; a project's own backend must add it to keep satisfying the protocol.

Fixed

  • The map beside a geometry field showed OpenStreetMap's 403 "Access blocked" picture on every tile. The admin's Referrer-Policy: same-origin meant a tile request carried no Referer, which OpenStreetMap's usage policy refuses. Tiles now set referrerPolicy="origin": the tile server learns which deployment is asking, never the admin URL naming the row being viewed.
  • SQLAlchemyAdapter.snapshot read expired columns, which is a lazy SELECT: after a flush expired an onupdate column, a snapshot taken past the commit raised MissingGreenlet. Unloaded columns are now omitted.
  • The README still listed soft delete and inlines as missing, three releases after both shipped.
  • A t() call whose key was never declared in FALLBACK_TEXT rendered its argument verbatim, in English, in every language — and the existing parity tests could not see it, because they only matched keys without spaces. A new test reads every call in fastfort.js.

0.7.0

Tier 3 opens: the events the admin always declared now actually fire, and a project can issue credentials for the things that are not browsers.

Added

  • The CRUD hooks are emitted. core/hooks.py has declared BEFORE_CREATE, AFTER_UPDATE, BEFORE_DELETE and the rest since before 0.4.0, with documented kwargs and its own unit tests — and nothing in admin/site.py ever called them. A project that registered a listener got silence, and no error to explain it. Every write path the admin owns now emits: form create and change, single and bulk delete, restore, in-place cell editing, bulk edit, and import. Where they fire is the load-bearing part. BEFORE_ runs inside the transaction, immediately before the write, so a listener that raises aborts it — that is what makes a veto possible at all. AFTER_ runs once the transaction has committed, so AFTER_CREATE means the row is durable rather than merely flushed, and a listener that sends mail never fires for a change that rolled back. In a batch, every BEFORE_ precedes every AFTER_ rather than interleaving.
  • Personal access tokens — ApiTokenMixin, fort.enable_api_tokens, fort.api_tokens.issue, and the token_user dependency for a project's own routes. Long-lived, named, scoped, expiring and individually revocable, for the cron job and the integration that have no password to type. The digest is SHA-256 rather than Argon2, deliberately: a work factor makes guessing expensive, and there is nothing to guess about 256 bits of uniform entropy — while putting one here would cost every authenticated request the ~100ms Argon2 is tuned to take. The secret is never stored and is readable exactly once.
  • ApiTokenAdmin — minting, listing and revoking from the admin. Minting is the add view rather than a route beside it, and it renders rather than redirects: a redirect would put the secret in a URL or a flash message, and the reveal must have no address to return to.
  • Hook's docstring now states when each CRUD pair fires, because that is the part a listener has to be written against.

0.6.0

The form and the list both grew what they had been missing: sections and children on one, editing without leaving on the other.

Added

  • ModelAdmin.inlines — a model's children on its own page. A project that modelled an order and its lines registered both and got two unrelated list views; adding three lines meant three round trips through a separate page, choosing the parent from a dropdown each time. No new adapter method: children are written through create/update/ delete and read back through a ListQuery with one equality filter on the foreign key, all of which both backends already implement. Saved in the parent's transaction, so a child that fails to parse leaves the parent unwritten too. A tabular inline takes a deliberately narrow set of controls — named explicitly, a map or an upload card is a start-up error; left to the default, it is skipped.
  • ModelAdmin.fieldsets — the form in named sections. Every field landed in one grid in spec order, so a twenty-five-column model was a wall of twenty-five controls. A titled section is a <details>, so a collapsed group still opens with scripting off. Naming a field twice is an error, and so is omitting one the database requires; omitting an optional one is how a section list narrows a form.
  • ModelAdmin.list_editable — cells edited in place. The whole table becomes one form with one Save button, which is what makes it work without script. All the rows or none: one bad value rolls the submission back.
  • ModelAdmin.bulk_editable — one field across the selected rows. Opt-in, unlike delete, and answered on its own page rather than in a popover, so it too works with scripting off.
  • Keyboard navigation on the list. j/k and the arrows move, Enter opens, x ticks a row for a bulk action. A roving tabIndex rather than a highlight of its own, so the browser's focus ring stays the only notion of "current".
  • A control for the display density. UISettings.density had driven every --ff-space-* token since before 0.4.0 and boot.js had read ff:density before the first paint for just as long — all ten catalogues already carried the strings. Only the buttons were missing.
  • The front-end budget moves to 75 KB / 97,000 bytes, once, for all of the above. Most of it is CSS and markup: the only script any of these features needed is the twenty lines that clone an inline row.

0.5.0

Three ways to touch fewer rows by hand: hide the columns you are not reading, name a filter worth coming back to, and delete without losing the row.

Added

  • Column visibility on the list view. A Columns menu beside Export, one toggle per displayed column, remembered per list in localStorage and applied straight to the table's own cells — so it survives a live filter or sort, which swaps in a fresh set of rows under the same toolbar. A client-only convenience throughout: the trigger is .ff-js-only because there is nothing to fall back to, the same reason Columns reuses the string the import page already carries rather than adding a second one.
  • Saved views. A filter was already shareable — it lives in the query string — so what was missing was a name for one worth returning to. A Views menu keeps a shelf of {name, query} pairs in the browser, next to Columns. Nothing server-side: the query string was already the source of truth, and a second copy of it would only be a second place for the two to disagree.
  • ModelAdmin.soft_delete_field. Name a nullable boolean or date/datetime column a project already owns, and DELETE_ACTION stops calling adapter.delete — it writes the marker instead, through adapter.update, which is the whole cost: no new table, no new adapter method. deletion_plan is never consulted for a soft-deleted row, since it has not actually left the table and nothing pointing at it needs to cascade. The list gains a Trash view offering RESTORE_ACTION in place of Delete, and the marker field is excluded from every create and edit form automatically.
  • The front-end size budget moves to 72 KB / 94,000 bytes (from 70 KB / 92,000), for column visibility and saved views — see the docstrings on both budget tests in tests/ui/test_theming.py for the exact accounting. Soft delete costs nothing here: it is the delete pipeline and two templates, not a line of fastfort.js or the stylesheets.

0.4.4

Three controls that rendered correctly and still looked wrong — one of them broken by 0.4.3's own release commit.

Fixed

  • A stray el in 06-widgets.css silently dropped the combobox's scrolling. Two characters, added to the end of padding: var(--ff-space-1); by the 0.4.3 release commit — which used git add -A and swept an unrelated accidental edit in beside the version bump. A CSS parser recovers from a malformed declaration by skipping to the next semicolon, so it ate the overflow-y: auto on the line below: .ff-combo__list kept its max-height and lost its scrollbar, which is precisely the behaviour 0.4.3 shipped to add. A release commit touches the version and the changelog and nothing else.
  • Hovering the trend chart erased the day under the pointer. The hit targets are laid over the drawing, and their hover fill was --ff-surface-hover — an opaque surface colour. An opaque fill in front of a chart does not highlight a column, it blanks it: the hovered day came out as a white rectangle with the trend missing from inside it, which reads as the chart failing to draw exactly where you are pointing. It is a translucent wash of the one hue now, the same reasoning as the area fill underneath it, so the line and the area still read through the column being pointed at.
  • A range column's bounds selector was the browser's own control. The enhancer's pass runs over selects marked for the combobox and this one was never marked, so it rendered with the operating system's blue highlight and its own typeface beside four styled controls on the same row. Two things say it was meant to be upgraded: it already carried data-ff-search="never", which nothing but the combobox reads, and the wrapper around it exists — with a comment saying so — only because the combobox inserts its replacement beside the native select and the sizing has to survive that swap. test_a_select_configured_for_the_combobox_is_given_to_the_combobox now fails on any <select> carrying combobox-only attributes without the marker, because a dead attribute leaves no other trace: the page is a 200 and the control works, it just does not look like the admin.

0.4.3

Two controls that rendered correctly and still could not be used.

Fixed

  • A dropdown low on a long form opened downwards and was cut off. place() flipped a panel above its trigger only when the space below fell under Math.min(panel.offsetHeight + 16, 220). The cap is what went wrong: it asserts that 220 pixels below is enough for a panel that wants three hundred, so anything between those two numbers opened downwards and ran off the bottom of the window. Measured against the real function at the geometry reported — 240 pixels below the trigger, 692 above it — the panel opened downwards and lost 81 pixels of its option list, with all that room going unused directly above it. It now compares the two sides and takes the larger, which answers the question the cap was approximating and is never worse than a fixed number. And because a side can be the larger one and still be too small, place() publishes the room it measured as --ff-pop-room; the combobox panel takes that as a max-height and the list inside gives way, so a panel that fits neither side scrolls instead of overflowing the window, where it cannot be reached at all.
  • The sign-in page still asked for its assets without the version. Moving the version into the path is what makes the year-long immutable cache safe, and 0.4.1 did that in admin/site.py — but admin/auth_views.py composes the static URL itself and was missed. So the one page an admin serves to people who are not signed in yet went on requesting /admin/static/fastfort.css, the address whose bytes change underneath it. Not a stale-stylesheet bug: that address answers no-cache and is revalidated, so the CSS was always current. It was the sign-in page paying a conditional request for its stylesheet and its script on every single load, for ever, while every other page in the admin paid none. Nothing caught it because the test that checks for the versioned URL reads /admin/, and every other page in the suite is behind the gate. It now reads the sign-in page too, signed out — the shared client has a session, and the route redirects somebody who already has one, which is a 303 with an empty body and an assertion that passes against nothing.

0.4.2

Two bugs that both hid behind a page reporting a successful save, and the dashboard gaps that were defects rather than missing features.

Added

  • The dashboard has a time range. AdminSettings.dashboard_ranges — (7, 30, 90) by default — draws a control above the cards, and every chart on the page follows it. The page showed one fixed window and no way to ask for another, which makes it a report rather than a dashboard: the question after "how many this month" is almost always "and last week?". Links carrying ?days=, not a form and not a script, because changing what a page shows is a navigation and belongs in history. The number is checked against the deployment's own list rather than clamped to a range: every widget costs one query per day, so eleven cards times a free-form 365 is four thousand queries from one address and a clamp would serve it happily. A value that is not on the list is not an error either — the page shows its default window, because a 400 on the front page of an admin is a worse answer than the page it was about to render. A widget's own days is now its default rather than its instruction: the control moves every card. Leaving pinned widgets alone was the alternative, and it is worse than having no control — pressing "7" would move the trend and leave the metric beside it on fourteen, both captions still true and the page as a whole saying nothing. Set dashboard_ranges=() to switch the control off and keep the single fixed window.
  • A card with nothing to show says so. An all-zero window drew a flat rule along the baseline, which is exactly what a chart that failed to render looks like — and on a new install it was the first thing the dashboard ever showed. "New accounts · 0" under a flat line reads as broken software rather than as a quiet week. Trends and metrics now print the sentence instead, and drop the plot, the summary facts and the sparkline that were describing nothing.
  • A missing comparison explains itself. Two cards side by side, one carrying "−36.7%" and the other a gap of the same size, left no way to tell an absent comparison from a change of zero. Where the earlier half of the window is empty — which is what makes the percentage infinite rather than large — the badge now says No earlier activity to compare. Not on a card that is already empty, where it would be the same sentence twice.

Fixed

  • Clicking a map placed no marker, and saved no coordinate. write() called formatPoint, which was declared nowhere: it lived beside PointMap in fastfort.js, and splitting the geometry editor into fastfort-geo.js carried parsePoint across and left it behind. Every click on a POINT map therefore raised a ReferenceError — before the draw() on the next line and before the value reached the control that submits. The pin appeared on the next pan, because a pan is the first redraw from anywhere else, so the field looked merely slow; in fact the box stayed empty and the place somebody had chosen was never saved. It shipped in three releases. tests/ui/test_scripts.py is the guard: it strips comments, strings and regular expressions out of every script in the package and asserts that each name a file calls is one it declares. There is no bundler here and no linter that reads JavaScript, and every other test in tests/ui/ reads the scripts as text and greps them for a string — so all of them passed while the function underneath was broken.
  • Editing any field on a row destroyed its secrets. A sensitive column is rendered empty however much is stored in it, so that a token or a key is never printed onto a page. Form.bind read that empty box as "write null": correcting the label on an API token silently wiped the token, and the page reported a successful save while doing it. Nothing echoes the value back and such columns are usually kept out of list_display, so there was no way to notice until the credential stopped working. Blank now means unchanged, which is the rule _bind_password and _bind_file have always applied for exactly this reason: a control that cannot show what is stored cannot be asked to clear it. Creating a row is unaffected — there is nothing to keep — and a required field still has to be filled in. The control now also says so, in all eleven languages: Leave blank to keep the current value. Without a word there, an edit form is indistinguishable from an empty one, and a secret that saved is indistinguishable from one that was lost.

0.4.1

The stylesheet's URL never changed, so an upgrade served new pages with the old CSS. /admin/static/fastfort.css was cached for a day (public, max-age=86400) behind a comment claiming "the URL changes with the package version in a release" — it never had. Upgrading to 0.4.0 therefore handed every browser and CDN that already held yesterday's copy a dashboard full of markup whose rules did not exist yet: charts drawn at their natural SVG size, meters as bulleted lists, tiles stacked one per row. On the hosted demo that was cf-cache-status: HIT with an age of fourteen hours, and nothing in any log. The version is now in the path — /admin/static/0.4.1/fastfort.css, /admin/static/0.4.1/js/fastfort.js — so the bytes behind a URL can never change and the year-long immutable cache they now carry is safe. The unversioned addresses still answer, for a project that overrode base.html, and carry no-cache: one conditional request per page, and never a stylesheet from before an upgrade. A version segment that is not the running one serves the running bytes rather than 404ing — the segment is a cache key, never a lookup, and an admin with no stylesheet is worse than one with the wrong one.

Fixed

  • The stylesheet's URL never changed, so an upgrade served new pages with the old CSS. /admin/static/fastfort.css was cached for a day (public, max-age=86400) behind a comment claiming "the URL changes with the package version in a release" — it never had. Upgrading to 0.4.0 therefore handed every browser and CDN that already held yesterday's copy a dashboard full of markup whose rules did not exist yet: charts drawn at their natural SVG size, meters as bulleted lists, tiles stacked one per row. On the hosted demo that was cf-cache-status: HIT with an age of fourteen hours, and nothing in any log. The version is now in the path — /admin/static/0.4.1/fastfort.css, /admin/static/0.4.1/js/fastfort.js — so the bytes behind a URL can never change and the year-long immutable cache they now carry is safe. The unversioned addresses still answer, for a project that overrode base.html, and carry no-cache: one conditional request per page, and never a stylesheet from before an upgrade. A version segment that is not the running one serves the running bytes rather than 404ing — the segment is a cache key, never a lookup, and an admin with no stylesheet is worse than one with the wrong one.

0.4.0

A front page worth opening, and the two questions an admin should never have had to be asked twice: who has been signing in, and what can a visitor take apart. Every chart is drawn by the server — no charting library, and not one byte of new JavaScript.

Added

  • The dashboard is widgets you arrange. fort.set_dashboard(Metric(Order), Trend(Order), Breakdown(Order, on="status"), Recent(Invoice), Counts()) — and a project that configures nothing still gets the layout it always had, for the queries it always cost.
  • Metric is a number, a signed delta against the first half of its own window, and a sparkline. Trend is the same series drawn large, as an area chart or as bars, with the window's total, its busiest day and its daily average. Breakdown is one meter per value of a column. Recent is the newest rows. Counts is every model, grouped the way the sidebar groups them.
  • Every widget states its cost in queries, because the dashboard is the page that gets opened most: Counts is one per model, Trend and Metric one per day, Breakdown one per value, Recent one. All of them share the request's single unit of work.
  • Subclass Widget, return a Card naming your own template, and it renders exactly like a built-in one. A widget that cannot say anything renders nothing at all — a typo in a configuration file costs a card, never the page.
  • Sign-in records. fort.record_sign_ins(SignInRecord) writes who signed in, from which address, on which browser and platform, failures included. Client hints are read first and the user-agent second, and the raw string is always kept: the reading can be wrong. There is no foreign key to the user table, so a record outlives the account it describes.
  • Four settings for what the admin may do to an account — change a password, change a superuser's password, delete an account, delete a superuser. All default to what the admin has always done. A protected password field is read-only and dropped from the write, because a control that still accepts a posted value is a label rather than a protection.

Fixed

  • The sidebar scrolled away with the page. The dashboard's hidden data table carried .ff-sr-only on the <table> itself; a table treats height as a minimum and grows to its rows, so an invisible full-size box stayed in the page's scrollable overflow and made the document some 640px taller than the shell. The sidebar is sticky inside that shell, so the extra scroll had nothing to hold it.

0.3.2

A token API, rate limiting, and uploads that have to be what they say they are. Numbered as a patch so a `<0.4` pin picks it up — read the fixes before upgrading, because rate limiting arrives switched on.

Added

  • A token API in one setting. auth={"api_enabled": True} mounts POST /auth/token, /refresh, /logout and GET /me at auth_url, in OAuth 2's request and response shapes. Off by default, because adding public endpoints to somebody else's application without being asked is not a library's decision to make.
  • fastfort.auth.bearer_user(fort) — a FastAPI dependency for your own routes. It hands the route the user row rather than a claims dict, and rejects an account deactivated since the token was issued, which a signature check alone would keep admitting for the rest of that token's life.
  • Refresh rotation with reuse detection, which rotate_refresh_tokens and revoke_family_on_reuse have promised since 0.1.0 and nothing implemented. A token presented twice cannot be told apart from a stolen one being used alongside the real client, so the whole family is revoked.
  • Rate limiting, on by default: three token-bucket budgets for reads, writes and sign-in. Argon2 is slow by design, which makes the sign-in form the cheapest thing on any site to attack — so that budget is charged in middleware before the handler runs and a refused request never reaches the hash.
  • Upload type checking: an extension allow-list per field kind, a deny-list of everything a server or browser might execute, and the leading bytes checked against the name. A .png whose content is an ELF binary is refused with the mismatch named.
  • search_fields accepts id and UUID columns, matched exactly. The one thing everybody types into an admin's search box, and until now a configuration error.
  • security.forwarded_depth, shared by the rate limiter and lockout, so there are not two answers to which client a request came from.

Fixed

  • The sidebar marked "you are here" below the fold. .ff-nav is its own scroll container, so a browser starts it at zero on every navigation — open a model near the bottom of the sidebar and the highlighted row was outside the visible band every time. boot.js now scrolls it into view before the first paint.
  • X-Forwarded-For was read from the left, which is the half an attacker writes: the header arrives with the request and each proxy appends after it. With trust_forwarded_for on, sending a different value each attempt bought a fresh lockout counter every time.
  • Uploaded files were served with a Content-Type guessed from their name — the half an attacker chose — from the admin's own origin, which is the origin holding the session cookie. The type now comes from the stored bytes, and anything not positively a raster image is text/plain and a download.
  • hack.exe.png is stored as hack_exe.png. A dangerous extension buried in a name is what a misconfigured server reads left to right and hands to an interpreter.
  • The range bounds selector offered [ … ), ( … ], [ … ] and ( … ). On the page that rendered as four rows of brackets around an ellipsis, which does not look like a choice between four things — it looks like a control whose options failed to load. It now names its endpoints in words, in all eleven languages.

0.3.1

Both ORM backends now satisfy the protocol they implement.

Fixed

  • SQLAlchemyBackend and TortoiseBackend narrowed adapter(uow=...) to their own unit of work. Parameter types are contravariant, so narrowing one made the class structurally incompatible with Backend — and every typed project got that error on the one line the README tells them to write.
  • mypy --strict over fastfort/ passed throughout, because the package never assigns a concrete backend to a Backend itself. The only place that happens is a project's own main.py, so the error landed on users and never on CI.

0.3.0

A second ORM behind the same contract, every column type with a real control, and five browser-side controls that had been rendering correctly and doing nothing.

Added

  • PostGIS: all eight geometry kinds drawn and edited on a hand-rolled slippy map.
  • Spatial filters — within, contains, intersects, overlaps, touches, crosses, bbox, and dwithin, which reads metres on a geography column and SRID units on a geometry.
  • pgvector similarity search: ?embedding__near=[…] with cosine, L2, L1 or inner product, a neighbour count and a distance bound.
  • Real controls for inet, macaddr, money, bit strings, hstore, ranges and multiranges — each had previously degraded to a read-only row.
  • register_type, so a project's own column types are classified once rather than retyped on every admin that shows them.
  • Import: CSV, Excel and JSON back in through the same parsers the form uses, every bad cell reported at once with its line number.
  • Thumbnails in list columns — an image column printed its stored path, which is the one thing a picture answers instantly.
  • ui.map_max_zoom: the deepest level to request from the tile source. It was a constant of 19, right for OpenStreetMap and wrong for every layer that serves deeper.
  • A Tortoise ORM backend, added without a change anywhere above fastfort/orm/ — which is the layering claim becoming a fact.

Fixed

  • A geography column printed raw WKB hex at whoever opened the page.
  • Interval and array columns silently degraded to read-only.
  • A month name the browser could not produce, and a clock the date picker now draws itself.
  • Sorting a list by a relation returned a 500.
  • The date picker's clock had never worked: it called a helper defined only in another bundle, so every call threw and the listener died silently. Choosing an hour did nothing and Done applied nothing.
  • Every required date column fell back to the browser's own picker. Two conditional attributes on consecutive lines were emitted glued together, so the selector matched nothing — 42 attributes across 6 templates.
  • The map went blank past zoom 19 with every tile loaded: a single-precision overflow in the compositor put each tile exactly 2^25 pixels off screen once the layer was scaled.
  • Opening a dropdown scrolled the page by about 120 pixels.
  • The confirm dialog's actions were the size of a toolbar button.

0.2.1

Tortoise ORM behind the same adapter contract.

Added

  • TortoiseBackend, added without a change anywhere above fastfort/orm/.
  • A conformance suite that asks both backends the same questions over identical model shapes.
  • Export: the current view as CSV, Excel or JSON, with filters, search and ordering applied.

Fixed

  • A connection the lifespan opened that the views could not see — Tortoise keeps its connections in a contextvar, and an ASGI server runs the lifespan in a different task.

0.1.0

The first release.

Added

  • @admin.register and ModelAdmin, validated against the model spec.
  • List, create, change and delete, all working with JavaScript switched off.
  • The deletion plan: DELETE, CLEAR and PROTECT, counted before anything is written.
  • Argon2id, JWT access and refresh with rotation and reuse detection, login lockout, CSRF.
  • Eleven language catalogues, shipped inside the wheel.
  • The fastfort command: generate-secret, createsuperuser, check, registered-models.