Skip to content

Commit

Permalink
Domain not in profile
Browse files Browse the repository at this point in the history
  • Loading branch information
say-yawn committed Aug 5, 2021
1 parent 7742448 commit e89525a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions emails/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ def _index_POST(request):

with transaction.atomic():
locked_profile = Profile.objects.select_for_update().get(
user=user_profile.user,
domain=request_data.get('domain', get_email_domain_from_settings())
user=user_profile.user
)
try:
relay_address = RelayAddress.make_relay_address(locked_profile)
Expand Down

0 comments on commit e89525a

Please sign in to comment.