Skip to content

feat: Add form field validation from model field #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 19, 2024

Conversation

fsbraun
Copy link
Member

@fsbraun fsbraun commented Nov 18, 2024

Description

This PR moves the field validation into the form field allowing it to be reused (as it is in djangocms-frontend).
Also, it adds default attributes that are not allowed to avoid unwanted execution of javascript.

Related resources

  • #...
  • #...

Checklist

  • I have opened this pull request against master
  • I have added or modified the tests when changing logic
  • I have followed the conventional commits guidelines to add meaningful information into the changelog
  • I have read the contribution guidelines and I have joined #workgroup-pr-review on
    Slack to find a “pr review buddy” who is going to review my pull request.

@fsbraun fsbraun merged commit fe68d29 into django-cms:master Nov 19, 2024
15 checks passed
@fsbraun fsbraun deleted the feat/formfield-validation branch November 19, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants