Commit f4c67740 authored by Okhin's avatar Okhin

Was missing an article_ prefix in a templates which raised an error

parent 6dadc540
Pipeline #2688 passed with stages
in 3 minutes and 42 seconds
...@@ -49,7 +49,7 @@ class Article(models.Model): ...@@ -49,7 +49,7 @@ class Article(models.Model):
#: Language of the webpage #: Language of the webpage
lang = models.CharField( lang = models.CharField(
_("Language"), choices=LANG_CHOICES, default="NA", max_length=50) _("Language"), choices=LANG_CHOICES, default="FR", max_length=5)
#: Plain-text Opengraph metadata #: Plain-text Opengraph metadata
metadata = models.TextField( metadata = models.TextField(
...@@ -242,7 +242,7 @@ class Article(models.Model): ...@@ -242,7 +242,7 @@ class Article(models.Model):
if self.original_status >= 400: if self.original_status >= 400:
return return
article.download(request_timeout=1) article.download()
try: try:
article.throw_if_not_downloaded_verbose() article.throw_if_not_downloaded_verbose()
except ArticleException: except ArticleException:
......
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
<p>{{object.extracts |markdown}}</p> <p>{{object.extracts |markdown}}</p>
{% if perms.rp.can_vote %} {% if perms.rp.can_vote %}
<span> <span>
<a href="{% url 'api:upvote' object.id %}" class="btn btn-outline-default">+1</a> <a href="{% url 'api:article-upvote' object.id %}" class="btn btn-outline-default">+1</a>
<a href="{% url 'api:downvote' object.id %}" class="btn btn-outline-default">-1</a> <a href="{% url 'api:article-downvote' object.id %}" class="btn btn-outline-default">-1</a>
</span> </span>
{% endif %} {% endif %}
</div> </div>
......
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