Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing migrations - image field #233

Open
fizista opened this issue Jun 15, 2016 · 0 comments
Open

Missing migrations - image field #233

fizista opened this issue Jun 15, 2016 · 0 comments

Comments

@fizista
Copy link

fizista commented Jun 15, 2016

When you install the library "sorl-thumbnail", then Django information about missing migrations.

Missing migration contains the code:

class Migration(migrations.Migration):
    ...
    operations = [
        migrations.AlterField(
            model_name='profile',
            name='avatar',
            field=sorl.thumbnail.fields.ImageField(blank=True, null=True, upload_to=pybb.util.FilePathGenerator(to='pybb/avatar'), verbose_name='Avatar'),
        ),
    ]

The problem is the function get_image_field_class.

The solution here would be able to be the proxy class, which, depending on the configuration to inherit properties from the library field image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant