Koed00 / django-q

A multiprocessing distributed task queue for Django
https://django-q.readthedocs.org
MIT License
1.8k stars 274 forks source link

Getting migration for Django Q when running makemigrations #694

Open allinws opened 1 year ago

allinws commented 1 year ago

/usr/local/lib/python3.10/site-packages/django_q/migrations/0010_auto_20220906_1144.py

`class Migration(migrations.Migration):

dependencies = [
    ('django_q', '0009_auto_20171009_0915'),
]

operations = [
    migrations.AlterField(
        model_name='task',
        name='args',
        field=picklefield.fields.PickledObjectField(editable=False, null=True, protocol=-1),
    ),
    migrations.AlterField(
        model_name='task',
        name='kwargs',
        field=picklefield.fields.PickledObjectField(editable=False, null=True, protocol=-1),
    ),
    migrations.AlterField(
        model_name='task',
        name='result',
        field=picklefield.fields.PickledObjectField(editable=False, null=True, protocol=-1),
    ),
]`

Shouldn't the migration already be included in the package so it'll be run when I run migrate?

GDay commented 1 year ago

This is weird. This migration is actually included in the library:

https://github.com/Koed00/django-q/blob/master/django_q/migrations/0010_auto_20200610_0856.py

There are even migrations after that, are you sure you are using the latest version?

I couldn't reproduce this issue.