Skip to content

Commit

Permalink
Merge pull request #2813 from Eskimon/fix-image-chapitre
Browse files Browse the repository at this point in the history
Enleve le champ d'image pour les chapitres pour le moment
  • Loading branch information
pierre-24 committed Jul 17, 2015
2 parents a240d8e + 12b36e2 commit c9d1337
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zds/tutorial/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def __init__(self, *args, **kwargs):

self.helper.layout = Layout(
Field('title'),
Field('image'),
# Field('image'), # disable because not used yet
Field('introduction', css_class='md-editor'),
Field('conclusion', css_class='md-editor'),
Field('msg_commit'),
Expand Down
3 changes: 2 additions & 1 deletion zds/tutorial/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,8 @@ class Meta:

image = models.ForeignKey(Image,
verbose_name='Image du chapitre',
blank=True, null=True)
blank=True, null=True,
on_delete=models.SET_NULL)
# This field is required in order to use pagination in chapters, see the
# update_position_in_tutorial() method.
position_in_tutorial = models.IntegerField('Position dans le tutoriel',
Expand Down

0 comments on commit c9d1337

Please sign in to comment.