Re: IsAdminUser permission is not allowing staff users

2024-10-12 Thread Viktor Yaremenko
Hello With these improvements, your API should now correctly handle booking approvals, providing helpful feedback on errors and ensuring that only authorized users can approve bookings. If you continue to experience issues, please verify the user’s admin status and check your authentication se

Re: Django Admin Interface Ignores Django Rest Serializer Validators

2024-10-12 Thread Viktor Yaremenko
Hello To summarize, the validation defined in DRF serializers won't be called during form validation in the Django Admin interface because the Admin uses its own validation methods based on forms and models. If you want consistent validation across the board, you should either place the validat