diff gpp/bio/views.py @ 562:98b373ca09f3

For bitbucket issue #3, ensure that changes to Profile, Post & Topic models via the admin cause the search index to be updated.
author Brian Neal <bgneal@gmail.com>
date Wed, 08 Feb 2012 18:58:57 -0600
parents d83296cac940
children
line wrap: on
line diff
--- a/gpp/bio/views.py	Mon Feb 06 20:37:02 2012 -0600
+++ b/gpp/bio/views.py	Wed Feb 08 18:58:57 2012 -0600
@@ -10,6 +10,7 @@
 from django.http import HttpResponse
 from django.http import HttpResponseBadRequest
 from django.http import HttpResponseRedirect
+from django.http import HttpResponseServerError
 from django.http import Http404
 from django.core.paginator import InvalidPage
 from django.core.urlresolvers import reverse
@@ -126,7 +127,6 @@
             profile = profile_form.save(commit=False)
             profile.user = request.user
             profile.save()
-            notify_profile_content_update(profile)
             return HttpResponseRedirect(reverse('bio.views.my_profile'))
     else:
         profile = request.user.get_profile()
@@ -230,7 +230,6 @@
                 profile = form.save(commit=False)
                 profile.user = request.user
                 profile.save()
-                notify_profile_content_update(request.user.get_profile())
                 return HttpResponseRedirect(request.path)
 
         # Delete forms