Verbose name and help text for video field

This commit is contained in:
Juda Kaleta 2013-10-03 09:19:34 +02:00
parent 62f03e3053
commit 521f4d74ec

View file

@ -6,7 +6,8 @@ from embed_video.fields import EmbedVideoField
class Post(models.Model):
title = models.CharField(max_length=50)
video = EmbedVideoField()
video = EmbedVideoField(verbose_name='My video',
help_text='This is a help text')
def __unicode__(self):
return self.title