Translations and small fix in the forum

This commit is contained in:
Skia 2017-02-24 03:28:44 +01:00
parent aa07749a47
commit 801f6ec786
2 changed files with 304 additions and 211 deletions

View File

@ -10,7 +10,7 @@ from django import forms
from django.db import models
from django.core.exceptions import PermissionDenied
from math import inf
import math
from core.views import CanViewMixin, CanEditMixin, CanEditPropMixin, CanCreateMixin, TabedViewMixin
from forum.models import Forum, ForumMessage, ForumTopic, ForumMessageMeta
@ -126,7 +126,7 @@ class ForumTopicDetailView(CanViewMixin, DetailView):
try:
kwargs['first_unread_message_id'] = msg.id
except:
kwargs['first_unread_message_id'] = inf
kwargs['first_unread_message_id'] = math.inf
return kwargs
class ForumMessageEditView(CanEditMixin, UpdateView):

File diff suppressed because it is too large Load Diff