Mercurial > public > sg101
comparison gpp/membermap/signals.py @ 261:6f3beff3ac63
Dummy. Left pdb in some code.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 22 Sep 2010 00:30:45 +0000 |
parents | 3a4bbf9c2cce |
children |
comparison
equal
deleted
inserted
replaced
260:3a4bbf9c2cce | 261:6f3beff3ac63 |
---|---|
7 from bio.models import UserProfile | 7 from bio.models import UserProfile |
8 from membermap.models import MapEntry | 8 from membermap.models import MapEntry |
9 | 9 |
10 | 10 |
11 def on_profile_save(sender, **kwargs): | 11 def on_profile_save(sender, **kwargs): |
12 import pdb; pdb.set_trace() | |
13 if 'instance' in kwargs: | 12 if 'instance' in kwargs: |
14 profile = kwargs['instance'] | 13 profile = kwargs['instance'] |
15 try: | 14 try: |
16 map_entry = MapEntry.objects.get(user=profile.user) | 15 map_entry = MapEntry.objects.get(user=profile.user) |
17 except MapEntry.DoesNotExist: | 16 except MapEntry.DoesNotExist: |