Commit ff8c754c authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

hotfix: absolute_url based on SITE_URL

parent 56bce0a8
Pipeline #6603 passed with stage
in 1 minute and 21 seconds
......@@ -41,7 +41,7 @@ class Model(models.Model):
@classonlymethod
def absolute_url(cls, instance_or_model):
if isinstance(instance_or_model, ModelBase) or instance_or_model.urlid is None or instance_or_model.urlid == '':
return '{}{}'.format(settings.BASE_URL, Model.resource(instance_or_model))
return '{}{}'.format(settings.SITE_URL, Model.resource(instance_or_model))
else:
return instance_or_model.urlid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment