Is there any way to do in django custom property setter like this?
class MyModel(models.Model): myfield = models.CharField(length = 250) @myfield.setter def set_password(self, value): self.password = encrypt(value)