Commit graph

4 commits

Author SHA1 Message Date
564eecf83e
feat: pass current user to SuffixUpdateView forms
Enhances the get_form_kwargs method in SuffixUpdateView to include the current user in the form parameters. This allows for user-specific form processing and validation, ensuring forms can access and utilize the requesting user's details.
2024-06-22 19:46:00 +02:00
af3315b3f1
feat: enforce maximum suffix limit for users
Added validation in both the model and view to enforce a limit on the number of suffixes a user can create based on their maximum suffixes property. This ensures that users cannot exceed their allowed number of suffixes and maintains system integrity.
2024-06-22 19:38:13 +02:00
21d90e6cd8
feat(settings): add dynamic DB selection based on config
Updated settings to dynamically select the database backend (MySQL, MariaDB, PostgreSQL, or SQLite) based on the configuration file. This change improves flexibility and allows easier customization of the database setup by just modifying the config file.
2024-06-22 19:02:50 +02:00
dbf7cde183
feat!: initial FreeDOI project setup
- Added standard project documentation including README.md
- Added .gitignore for ignoring unnecessary files (.venv, *.pyc, etc.)
- Implemented basic Django application structure with accounts and resolver apps
- Configured Django settings, including two-factor auth and database setup
- Set up Django admin and basic model structures for Prefixes, Suffixes, Identifiers, and Permissions
- Added templates for accounts and resolver management
- Configured initial migrations and custom user model
- Included poetry dependencies and project setup configuration

This commit sets up the fundamental structure of the FreeDOI project, enabling DOI-like identifier creation and resolution.
2024-06-22 18:32:37 +02:00