Questions & Answers

14
votes
3
answers
432
views

What's the proper way to handle Django form validation with custom validators?

I'm working on a Django project and encountering an issue with Django authentication. Here's my current implementation: # models.py class Article(models.Model): title = models.CharField(max_length=200) author = models.ForeignKey(User, on_delete=models.CASCADE) def save(self, …
abaditaye Newbie asked 1 week, 4 days ago