KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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)
Tags (comma-separated)
Save Edits
Cancel