mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-04-27 08:04:42 +00:00
provide south migration
This commit is contained in:
parent
aa2e04f90c
commit
6d1d1d4a03
1 changed files with 9 additions and 0 deletions
|
|
@ -13,6 +13,15 @@ class EmbedVideoField(models.URLField):
|
|||
defaults.update(kwargs)
|
||||
return super(EmbedVideoField, self).formfield(**defaults)
|
||||
|
||||
def south_field_triple(self):
|
||||
from south.modelsinspector import introspector
|
||||
cls_name = '%s.%s' % (
|
||||
self.__class__.__module__,
|
||||
self.__class__.__name__
|
||||
)
|
||||
args, kwargs = introspector(self)
|
||||
return (cls_name, args, kwargs)
|
||||
|
||||
|
||||
class EmbedVideoFormField(forms.URLField):
|
||||
def validate(self, url):
|
||||
|
|
|
|||
Loading…
Reference in a new issue