Skip to content

Commit

Permalink
Fix site creation automation api - EDLY-5126 (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
taimoor-ahmed-1 authored Jan 9, 2023
1 parent 5bca926 commit a46cf36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ecommerce/extensions/edly_ecommerce_app/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ def process_client_sites_setup(self):
)
payments_site, __ = Site.objects.update_or_create(
domain=old_payments_base,
name=old_payments_base,
defaults={'domain': payments_base, 'name': payments_base},
defaults={'domain': payments_base, 'name': payments_base[:50]},
)
payments_partner, __ = Partner.objects.update_or_create(short_code=edly_slug, defaults=dict(name=edly_slug, default_site=payments_site))
payments_site_config, __ = SiteConfiguration.objects.update_or_create(
Expand Down

0 comments on commit a46cf36

Please sign in to comment.