Modern Slavery Statements Register
From a legacy Django form to a modern government submission experience.
Asked to strengthen validation on an ageing submission form, Hamza saw a bigger opportunity, earned stakeholder approval to pursue it, and modernised the whole journey without discarding the backend that already worked.
- Role
- Technical lead and senior software engineer
- Engagement
- Delivered through GoSource Australia for the Attorney-General’s Department
- Stack
- Django · Python · Next.js · React · TypeScript · shadcn/ui · Object storage · Presigned uploads
- Public site
- modernslaveryregister.gov.au
The brief
The Register is where organisations covered by Australia’s Modern Slavery Act, and those reporting voluntarily, lodge their modern slavery statements for publication.
The Department wanted better validation in the existing submission process: catch invalid information earlier and improve the quality of what reached administrative review. The interface was a seven-step journey built from server-rendered Django templates.
The insight
Studying the architecture, Hamza concluded that adding validation to the same templates would only go so far. The deeper constraints were in the interaction layer: full-page reloads between steps, sections that adapted poorly to the kind of statement being lodged, and feedback that arrived late.
He proposed a modern Next.js and React front end over the existing Django backend, which would remain the authoritative system for data and rules. It was a selective modernisation, not a rewrite.
Earning approval
Discovery ran as near-daily conversations with the delivery manager and the Department’s representatives, settling to roughly twice-weekly reviews once requirements and design decisions were clear.
Hamza made the case for the new architecture and worked through the design and implementation alternatives with stakeholders. The Department agreed to extend the original scope into a substantially expanded modernisation initiative.
BeforeServer-rendered Django templates
Submitting a statement
Browser
Seven server-rendered steps
Django
Templates and forms
Full page per step
Django
Data and rules
Uploading the statement PDF
Browser
PDF upload
Django
Carries the file transfer
Storage
Object storage
A new front end over the same Django backend
AfterNext.js and React, with Django still authoritative
Submitting a statement
Next.js and React
Seven-step journey
Side sheets, progressive saving, ABN-assisted details
- API calls
Django
Validation API
Results shown early
- Same rules
Django
Data and rules
Still authoritative
Uploading the statement PDF
Django
Authorises the upload
- Short-lived presigned URL
Browser
Sends the PDF
- Direct upload
Storage
Object storage
What was built
A seven-step journey without page reloads
Context-aware React forms with Next.js navigation and prefetching, contextual side sheets and responsive controls. Progress is saved as the submitter moves through the steps.
Identity from the ABN
Entering an Australian Business Number identifies the organisation early and pre-fills the details available for it, which heads off mistakes further down the form.
Paths that adapt to the statement
The first step establishes what kind of submission this is, such as a single entity’s statement, a joint statement or voluntary reporting, and later sections adapt to that choice.
Domain rules, surfaced early
Django still enforces the rules on reporting periods, overlapping periods, existing submissions and prior intentions to report. The new interface surfaces those results sooner and more clearly, for submitters and for the administrators who review them.
Large PDFs, straight to storage
Statements are lodged as PDFs, some of them large. Instead of passing each upload through Django, the backend issues a short-lived presigned URL and the browser sends the file directly to object storage. Application servers no longer carry the transfer, and each URL grants time-limited permission to write a single object.
The outcome
- A contemporary seven-step submission interface
- Conditional paths that adapt to the type of statement
- Earlier, clearer validation, backed by the same Django rules
- ABN-assisted identification of the reporting entity
- Progressive saving across the journey
- Direct-to-storage uploads for large documents
- Positive feedback from government stakeholders
What it shows
Notice when the brief is smaller than the problem, make the case to the people funding the work, and change only what needs to change.