Commit e1de8a5c authored by okhin's avatar okhin 🚴

Merge branch '67-les-methodes-fetch-ne-fonctionnent-pas' into 'rp2'

Resolve "Les méthodes fetch ne fonctionnent pas"

Closes #67

See merge request !58
parents 6dadc540 f4c67740
Pipeline #2689 passed with stages
in 4 minutes and 47 seconds
......@@ -49,7 +49,7 @@ class Article(models.Model):
#: Language of the webpage
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
metadata = models.TextField(
......@@ -242,7 +242,7 @@ class Article(models.Model):
if self.original_status >= 400:
return
article.download(request_timeout=1)
article.download()
try:
article.throw_if_not_downloaded_verbose()
except ArticleException:
......
......@@ -75,8 +75,8 @@
<p>{{object.extracts |markdown}}</p>
{% if perms.rp.can_vote %}
<span>
<a href="{% url 'api: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-upvote' 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>
{% endif %}
</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