Hello, I am trying to set a default value for attribute threshold in this code, the threshold should be the current level*50 and this is the model
class Level (models.Model): name = models.CharField(max_length=20,null=True, blank=True) description = models.CharField(max_length=20, null=True, blank=True) number = models.IntegerField(null=True, blank=True) threshold = models.IntegerField(null=True, blank=True,default=50*number,editable=False) i get an error unsupported operand types for * : 'int' and 'IntegerField' -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/1whe5z-dAh4J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.