def create(self):
    if (int(self.flavor_qty) > 0):
        for i in range(int(self.flavor_qty)):
            flavor = Flavor.objects.create(id=self.flavor_id)
            flavor.save()
            print('create flavor')
    self.is_adding = False
    self.show_table()
def create(self):
    if (int(self.flavor_qty) > 0):
        for i in range(int(self.flavor_qty)):
            flavor = Flavor.objects.create(id=self.flavor_id)
            flavor.save()
            print('create flavor')
    self.is_adding = False
    self.show_table()