Django Form If condition in view.py with 2 instance
问题 TO SAVE DATA that is inputted in form in Django i tried tomake it like this I put this in my model.py class Item(models.Model): CATEGORY = ( ('Gudang Kering', 'Gudang Kering'), ('Gudang Basah','Gudang Basah'), ) name = models.CharField(max_length=200,null= True) stock = models.IntegerField(default='0', blank=False, null=True) category = models.CharField(max_length=200,null= True,choices=CATEGORY) reorderlevel = models.IntegerField(default='0', blank=False, null=True) maxreorderlevel = models