Permalink
Browse files

filer.fields.video

  • Loading branch information...
1 parent 23d53a9 commit 3e6597f07e7f3b9dd7962c7d32f148efbe1a0dc7 @pvl pvl committed Oct 27, 2011
Showing with 17 additions and 0 deletions.
  1. +17 −0 filer/fields/video.py
View
@@ -0,0 +1,17 @@
+#-*- coding: utf-8 -*-
+from filer.fields.file import AdminFileWidget, AdminFileFormField, \
+ FilerFileField
+from filer.models import Video
+
+
+class AdminVideoWidget(AdminFileWidget):
+ pass
+
+
+class AdminVideoFormField(AdminFileFormField):
+ widget = AdminVideoWidget
+
+
+class FilerVideoField(FilerFileField):
+ default_form_class = AdminVideoFormField
+ default_model_class = Video

0 comments on commit 3e6597f

Please sign in to comment.