mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-04-23 06:14:43 +00:00
Verbose name and help text for video field
This commit is contained in:
parent
62f03e3053
commit
521f4d74ec
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue