0
Hello, I want to fill the password field of my model Company in sending the value typed via post ajax, I saw that there is the Passwordinput widget when using modelform but I did not want to use modelform and yes via ajax, it is mandatory to use modelform to save passwords?
My model:
from django.db import models
class Company(models.Model):
name = models.CharField(max_length=150, blank=False, null=False)
email = models.EmailField( max_length=254, blank=False, null=False)
password = models.CharField(max_length=150, blank=False, null=False)
No, you don’t have to, no matter where the information comes from, in your view you can process it however you need to and save it in the bank.
– Sidon