Django Add Form
Developmentdjango-add-formDjango Add Form is an Agent Skill for development published in the fossasia/eventyay repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Steps for creating or modifying Django forms and adding validation
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/fossasia/eventyay/blob/HEAD/.agents/skills/django-add-form/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/django-add-form, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
When to use
Use this skill when building or editing forms handling user input for views like back-office organizers (control/) or attendee-facing routes (presale/).
Steps
- Place the new form class strictly alongside its relevant sub-app (e.g.,
app/eventyay/base/forms/,app/eventyay/control/forms/). - Add specific, individual field-level validation by implementing
clean_<field>()methods. - Add multi-field or cross-field validation logic by implementing generic
clean()method overrides.
Validation
- Confirm the form has definitively been organized within its intended domain scope (e.g. keeping control constraints strictly out of presale domains).
Gotchas
- Do not bypass Django's built-in validation mechanisms logic when working with forms.
- Do not mix
control/forms/configurations intopresale/logic.