1👍
✅
Pass a callable object, not the result of the function:
db_password = models.CharField(max_length=255, default=generate_rand)
Source:stackexchange.com
1👍
Pass a callable object, not the result of the function:
db_password = models.CharField(max_length=255, default=generate_rand)