Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 44228a6c26
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (20 sloc) 0.818 kB
from django.db import models
from django.utils.translation import ugettext as _
from cms.models import CMSPlugin
from cmsplugin_vimeo import settings
class Vimeo(CMSPlugin):
video_id = models.CharField(_('video id'), max_length=60)
autoplay = models.BooleanField(
_('autoplay'),
default=settings.CMS_VIMEO_DEFAULT_AUTOPLAY
)
width = models.IntegerField(_('width'),
default=settings.CMS_VIMEO_DEFAULT_WIDTH)
height = models.IntegerField(_('height'),
default=settings.CMS_VIMEO_DEFAULT_HEIGHT)
border = models.BooleanField(_('border'),
default=settings.CMS_VIMEO_DEFAULT_BORDER)
loop = models.BooleanField(_('loop'),
default=settings.CMS_VIMEO_DEFAULT_LOOP)
def __unicode__(self):
return u'%s' % (self.video_id,)
Jump to Line
Something went wrong with that request. Please try again.