forked from extern/django-helpdesk
Fix: use helpdesk settings to for https config
This commit is contained in:
parent
03d1c66dd6
commit
92ea5bc984
@ -685,7 +685,7 @@ class Ticket(models.Model):
|
|||||||
site = Site.objects.get_current()
|
site = Site.objects.get_current()
|
||||||
except ImproperlyConfigured:
|
except ImproperlyConfigured:
|
||||||
site = Site(domain='configure-django-sites.com')
|
site = Site(domain='configure-django-sites.com')
|
||||||
if settings.HELPDESK_USE_HTTPS_IN_EMAIL_LINK:
|
if helpdesk_settings.HELPDESK_USE_HTTPS_IN_EMAIL_LINK:
|
||||||
protocol = 'https'
|
protocol = 'https'
|
||||||
else:
|
else:
|
||||||
protocol = 'http'
|
protocol = 'http'
|
||||||
@ -711,7 +711,7 @@ class Ticket(models.Model):
|
|||||||
site = Site.objects.get_current()
|
site = Site.objects.get_current()
|
||||||
except ImproperlyConfigured:
|
except ImproperlyConfigured:
|
||||||
site = Site(domain='configure-django-sites.com')
|
site = Site(domain='configure-django-sites.com')
|
||||||
if settings.HELPDESK_USE_HTTPS_IN_EMAIL_LINK:
|
if helpdesk_settings.HELPDESK_USE_HTTPS_IN_EMAIL_LINK:
|
||||||
protocol = 'https'
|
protocol = 'https'
|
||||||
else:
|
else:
|
||||||
protocol = 'http'
|
protocol = 'http'
|
||||||
|
Loading…
Reference in New Issue
Block a user