Commit 801f6ec7 authored by Skia's avatar Skia

Translations and small fix in the forum

parent aa07749a
Pipeline #768 passed with stage
in 3 minutes and 12 seconds
...@@ -10,7 +10,7 @@ from django import forms ...@@ -10,7 +10,7 @@ from django import forms
from django.db import models from django.db import models
from django.core.exceptions import PermissionDenied from django.core.exceptions import PermissionDenied
from math import inf import math
from core.views import CanViewMixin, CanEditMixin, CanEditPropMixin, CanCreateMixin, TabedViewMixin from core.views import CanViewMixin, CanEditMixin, CanEditPropMixin, CanCreateMixin, TabedViewMixin
from forum.models import Forum, ForumMessage, ForumTopic, ForumMessageMeta from forum.models import Forum, ForumMessage, ForumTopic, ForumMessageMeta
...@@ -126,7 +126,7 @@ class ForumTopicDetailView(CanViewMixin, DetailView): ...@@ -126,7 +126,7 @@ class ForumTopicDetailView(CanViewMixin, DetailView):
try: try:
kwargs['first_unread_message_id'] = msg.id kwargs['first_unread_message_id'] = msg.id
except: except:
kwargs['first_unread_message_id'] = inf kwargs['first_unread_message_id'] = math.inf
return kwargs return kwargs
class ForumMessageEditView(CanEditMixin, UpdateView): class ForumMessageEditView(CanEditMixin, UpdateView):
......
This diff is collapsed.
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