feat(surrenders): public rabbit surrender form + admin review queue #19
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a public, anonymous "surrender a rabbit" form so members of the public can submit a rabbit into our care without needing an account. Nothing is created in the live rabbit records until an admin explicitly accepts the submission.
Public form (
/surrender, unauthenticated)SurrenderSubmissionrow withstatus=pending. NoRabbitrow is created at this point.Admin queue (
/surrenders, admin only)Rabbit(status=Resident, no hutch assigned — staff place it later from the rabbits page as normal), copies over submitted fields, linksSurrenderSubmission.rabbit_idback for traceability, writes an audit log entry.status=rejected+ optional admin note. No rabbit created. Record is kept (not deleted).Data model
New table
SurrenderSubmission: rabbit fields as above, submitter contact fields, legal ack + timestamp + text version, status enum, admin note,rabbit_idFK (nullable, set on accept), timestamps.Notes
adopt.py/adoptions.pypublic-form + admin-management split already in the codebase.