Skip to content
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

Custom validation with django-ajax-selects #73

Closed
jeffersonfelixdev opened this issue Mar 27, 2014 · 3 comments
Closed

Custom validation with django-ajax-selects #73

jeffersonfelixdev opened this issue Mar 27, 2014 · 3 comments

Comments

@jeffersonfelixdev
Copy link

How can I add custom validation in my admin form using ajax-selects? E.g., I need to validate unique together (Django 1.6 don't raise exception in this case, but I think 1.7 do). When I use a custom form, the + button doesn't work.

@jeffersonfelixdev
Copy link
Author

Resolved: I just used model validation (Model.clean())

@crucialfelix
Copy link
Owner

You can also write your own Form class and add ajax select fields to it. The shortcut to make a full Form is only for cases where you do not need validation or anything custom.

@jeffersonfelixdev
Copy link
Author

Thanks for help

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

No branches or pull requests

2 participants