Commit cc385038 authored by Michal Čihař's avatar Michal Čihař

Remove get_review_url method

It was used in single place where the unit object is available as
well, so it's better to get the URL directly from it.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e82642a8
......@@ -52,7 +52,7 @@
</p>
<p>
<a href="{{ current_site_url }}{{ suggestion.get_review_url }}">{{ current_site_url }}{{ suggestion.get_review_url }}</a>
<a href="{{ current_site_url }}{{ unit.get_absolute_url }}">{{ current_site_url }}{{ unit.get_absolute_url }}</a>
</p>
{% include "mail/footer.html" %}
......
......@@ -12,6 +12,6 @@
{% trans "You can review it at:" %}
{{ current_site_url }}{{ suggestion.get_review_url }}
{{ current_site_url }}{{ unit.get_absolute_url }}
{% endfilter%}{% endautoescape %}{% include "mail/footer.txt" %}
......@@ -149,12 +149,6 @@ class Suggestion(models.Model, RelatedUnitMixin):
'''
return self.get_matching_unit().source
def get_review_url(self):
'''
Returns URL which can be used for review.
'''
return self.get_matching_unit().get_absolute_url()
def get_user_display(self):
return get_user_display(self.user, link=True)
......
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