def post_save_profile(instance, sender, **kwargs):
 if ((not instance.is_superuser) and kwargs['created'] and (not kwargs['raw']) and (instance.username != 'AnonymousUser')):
  current_site = Site.objects.get_current()
  SitePeople.objects.get(site=current_site).people.add(instance)

def post_save_profile ( instance , sender , ** kwargs ) : if ( ( not instance . is_superuser ) and kwargs [ 'created' ] and ( not kwargs [ 'raw' ] ) and ( instance . username != 'AnonymousUser' ) ) : current_site = Site . objects . get_current ( ) SitePeople . objects . get ( site = current_site ) . people . add ( instance )
signal to ensure that every created user is assigned to the current site only .