mirror of https://github.com/zulip/zulip.git
Fix creating new users via zephyr mirroring.
(imported from commit 05e01efabdce081fc574486916c7db343f2cdb1d)
This commit is contained in:
parent
564565f627
commit
426ab9559d
|
@ -158,6 +158,7 @@ class UserProfile(models.Model):
|
|||
# Auto-sub to the ability to receive personals.
|
||||
recipient = Recipient.objects.create(type_id=profile.id, type=Recipient.PERSONAL)
|
||||
Subscription.objects.create(user_profile=profile, recipient=recipient)
|
||||
return profile
|
||||
|
||||
class PreregistrationUser(models.Model):
|
||||
email = models.EmailField(unique=True)
|
||||
|
|
Loading…
Reference in New Issue