Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

filer.fields.video

  • Loading branch information...
commit 3e6597f07e7f3b9dd7962c7d32f148efbe1a0dc7 1 parent 23d53a9
Pedro Lima pvl authored

Showing 1 changed file with 17 additions and 0 deletions. Show diff stats Hide diff stats

  1. +17 0 filer/fields/video.py
17 filer/fields/video.py
... ... @@ -0,0 +1,17 @@
  1 +#-*- coding: utf-8 -*-
  2 +from filer.fields.file import AdminFileWidget, AdminFileFormField, \
  3 + FilerFileField
  4 +from filer.models import Video
  5 +
  6 +
  7 +class AdminVideoWidget(AdminFileWidget):
  8 + pass
  9 +
  10 +
  11 +class AdminVideoFormField(AdminFileFormField):
  12 + widget = AdminVideoWidget
  13 +
  14 +
  15 +class FilerVideoField(FilerFileField):
  16 + default_form_class = AdminVideoFormField
  17 + default_model_class = Video

0 comments on commit 3e6597f

Please sign in to comment.
Something went wrong with that request. Please try again.