~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to threadedcomments/views.py

  • Committer: kaputtnik
  • Date: 2019-03-31 11:08:21 UTC
  • mto: This revision was merged to the branch mainline in revision 531.
  • Revision ID: kaputtnik-20190331110821-1o6c8ebh1sag7xat
mv main files into mainpage directory; apply needed changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
from threadedcomments.forms import ThreadedCommentForm
9
9
from threadedcomments.models import ThreadedComment, DEFAULT_MAX_COMMENT_LENGTH
10
10
from threadedcomments.utils import JSONResponse, XMLResponse
11
 
from wl_utils import get_real_ip
 
11
from mainpage.wl_utils import get_real_ip
12
12
 
13
13
 
14
14
def _adjust_max_comment_length(form, field_name='comment'):