Skip to content
New issue

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

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

Already on GitHub? # 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.

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

No branches or pull requests

1 participant