Skip to content

Commit 61ca4d2

Browse files
committed
Better fix, replacing [10294].
- Legacy-Id: 10296 Note: SVN reference [10294] has been migrated to Git commit c760822
1 parent c760822 commit 61ca4d2

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

ietf/meeting/ajax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def constraint_json(request, num, constraintid):
575575
status = 404,
576576
content_type="application/json")
577577

578-
json1 = constraint.json_dict(request)
578+
json1 = constraint.json_dict(request.build_absolute_uri('/'))
579579
return HttpResponse(json.dumps(json1, sort_keys=True, indent=2),
580580
content_type="application/json")
581581

ietf/meeting/models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -849,9 +849,7 @@ def constraint_cost(self):
849849
def json_url(self):
850850
return "/meeting/%s/constraint/%s.json" % (self.meeting.number, self.id)
851851

852-
def json_dict(self, request):
853-
proto = 'https' if request.is_secure() else 'http'
854-
host_scheme = "%s://%s" % (proto, request.get_host())
852+
def json_dict(self, host_scheme):
855853
ct1 = dict()
856854
ct1['constraint_id'] = self.id
857855
ct1['href'] = urljoin(host_scheme, self.json_url())

0 commit comments

Comments
 (0)