So, I have a table called "order" that has a foreign key with the table "store". The order table has a boolean field set by default to false. When a new order is created, I need to loop through the boolean values associated with each individual store and set the other orders to false and the new order to true. Not sure how to create the for loop for that. First I tried to set it into the view, but maybe it can be put into the forms.py file? This my create code so far.

```
def create(request):
    if request.POST:
        form = OrderForm(request.POST)
        if form.is_valid():

            form.save()     

         return HttpResponseRedirect('/liquors/all')
     else:
          form = OrderForm()

          args = {}
          args.update(csrf(request))

          args['form'] = form    

          return render_to_response('create_order.html', args)

```

Models provided upon request, you shouldn't need anything except the order model:

```
    class Order(models.Model):

       OrderID = models.AutoField(primary_key=True)
       storeID = models.ForeignKey(Store)    
       DateCreated = models.DateField('Date Created', auto_now_add=True)
       OrderName = models.CharField('Order Name', max_length=25 )
       Active = models.BooleanField()

```