Skip to content

Instantly share code, notes, and snippets.

@hiway
Created January 22, 2013 05:52
Show Gist options
  • Save hiway/4592431 to your computer and use it in GitHub Desktop.
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.
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