Mercurial > public > sg101
diff gpp/forums/views/spam.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 | 2ff5f4c1476d |
children | 93f049a241ff |
line wrap: on
line diff
--- a/gpp/forums/views/spam.py Mon Feb 06 20:37:02 2012 -0600 +++ b/gpp/forums/views/spam.py Wed Feb 08 18:58:57 2012 -0600 @@ -8,7 +8,6 @@ from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect -from django.http import HttpResponseForbidden from django.shortcuts import get_object_or_404 from django.shortcuts import render_to_response from django.template import RequestContext @@ -52,7 +51,7 @@ if user.is_active and profile.status == bio.models.STA_STRANGER: profile.status = bio.models.STA_ACTIVE profile.status_date = datetime.datetime.now() - profile.save() + profile.save(content_update=False) @login_required