Mercurial > public > sg101
diff gpp/bio/signals.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/signals.py Mon Feb 06 20:37:02 2012 -0600 +++ b/gpp/bio/signals.py Wed Feb 08 18:58:57 2012 -0600 @@ -6,8 +6,6 @@ from django.contrib.auth.models import User import django.dispatch -import bio.badges -from bio.models import UserProfile from donations.models import Donation from weblinks.models import Link from downloads.models import Download @@ -25,7 +23,7 @@ created = kwargs['created'] if created: user = kwargs['instance'] - profile = bio.models.UserProfile() + profile = UserProfile() profile.user = user profile.save() @@ -109,3 +107,8 @@ """ profile_content_update.send_robust(profile) + + +# To avoid circular imports +import bio.badges +from bio.models import UserProfile