def handle(self, *args, **options): for user in User.objects.all(): if not user.openid_set.filter(default=True).exists(): oid = OpenID(user=user, default=True) oid.save() kwargs = {'id': oid.openid, 'identity': True} print user.username, user.email, reverse('openid-provider-identity', kwargs=kwargs)
def handle(self, *args, **options): for user in User.objects.all(): if not user.openid_set.filter(default=True).exists(): oid = OpenID(user=user, default=True) oid.save() kwargs = {'id': oid.openid, 'identity': True} print user.username, user.email, reverse( 'openid-provider-identity', kwargs=kwargs)
def signup(self, request, user): user.first_name = self.cleaned_data['first_name'] user.last_name = self.cleaned_data['last_name'] user.save() oid = OpenID(user=user, default=True) oid.save()