title: Django urls. Click on the button and redirect to the same page
body: <p>Hej, 
  I have a problem with urls. Through the button I'm passing to the url appropriate id, in controller I'm taking this id and assign it to the current date to save it in database (table with users then admin clicks on "attend" and save lastAttendance in database). I'm stacked with urls cause after clicking it doesn't redirect me to the same page. Any advices appreciated!</p>
  
  <p>MODEL:</p>
  
  <pre><code>class Donor(models.Model):
  firstName = models.CharField(max_length=50)
  lastName = models.CharField(max_length=50)
  bloodType = models.CharField(max_length=10)
  createdDate = models.DateTimeField(auto_now_add=True)
  lastAttendance = models.DateTimeField(auto_now_add=True)
  </code></pre>
  
  <p>URLS:</p>
  
  <pre><code>url(r'^donors/get?attend=(\d+)/$', views.donors,  name='donors'),
  </code></pre>
  
  <p>VIEW:</p>
  
  <pre><code>@login_required(login_url="login/")
  def donors(request):
      global message
      if request.method == 'POST':
          form = PostForm(request.POST) # A form bound to the POST data
          if form.is_valid():
              form.save() 
  
  # context = RequestContext(request)
  donor_id = None
  if request.method == "GET":
      donor_id = request.GET.get('id')
  
  if donor_id:
      donor = Donor.objects.get(id=int(donor_id))
      if donor:
          donor.lastAttendance = datetime.datetime.now()
          donor.save()
  
  #display all the lates added donors
  query_results = Donor.objects.order_by('-createdDate')
  #dislay total ammount of rows
  donors_count = Donor.objects.count()
  
  return render(request, 'donors.html', {
      'form': PostForm(), 
      'donors_count': donors_count,
      'query_results': query_results,       
      })
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>  &lt;button 
  type="submit" 
  class="btn attendBtn" 
  value="{{ item.id }}" 
  name="attend"&gt;attend
  </code></pre>
  
  <p></p>
  
  <p>OUTPUT
  <a href="https://i.stack.imgur.com/F0TBi.png" rel="nofollow noreferrer">output in the browser</a></p>
  
  <p>Any help will be appreciated !! </p>