hovel / pybbm

Django forum solution. Tested, documented, shipped with example project.
BSD 2-Clause "Simplified" License
225 stars 151 forks source link

Missing migrations - image field #233

Open fizista opened 8 years ago

fizista commented 8 years ago

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.