Skip to content

Commit

Permalink
permet l'edition d'un message après lock du topic
Browse files Browse the repository at this point in the history
  • Loading branch information
firm1 committed Jul 13, 2014
1 parent 9d7f1ae commit d5f6546
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 d5f6546

Please sign in to comment.