Created
January 22, 2013 05:52
-
-
Save hiway/4592431 to your computer and use it in GitHub Desktop.
Using Filepicker.io and Django South migrations together. South cannot introspect some fields, if you are redirected to http://south.aeracode.org/wiki/MyFieldsDontWork and looking for a solution specific to Filepicker's FPFileField, this is the code you're looking for.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django_filepicker.models import FPFileField | |
from south.modelsinspector import add_introspection_rules | |
add_introspection_rules([], ["django_filepicker\.models\.FPFileField"]) | |
class Stuff(models.Model): | |
preview = FPFileField(upload_to='previews', null=True, blank=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment