Skip to content

Commit

Permalink
Merge pull request #1169 from zestedesavoir/fix-issue-1160
Browse files Browse the repository at this point in the history
permet l'edition d'un message après lock du topic
  • Loading branch information
dralliw committed Jul 13, 2014
2 parents 3f686d6 + d5f6546 commit 69e1f00
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions zds/forum/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,12 @@ def __init__(self, topic, user, *args, **kwargs):
u'afin de limiter le flood.',
disabled=True)
elif topic.is_locked:
self.helper['text'].wrap(
Field,
placeholder=u'Ce topic est verrouillé.',
disabled=True
)
if 'text' not in self.initial:
self.helper['text'].wrap(
Field,
placeholder=u'Ce topic est verrouillé.',
disabled=True
)

def clean(self):
cleaned_data = super(PostForm, self).clean()
Expand Down

0 comments on commit 69e1f00

Please sign in to comment.