makemigrations makes migration even if no changes in model

38 views
Skip to first unread message

Michał Redmerski

unread,
Nov 9, 2018, 11:51:49 AM11/9/18
to django...@googlegroups.com
Hello!

All issues with this I googled, are with the opposite problem.

I have models: Record, Stage, StageFetch
here is my code:
https://gist.github.com/redmeros/bd70481cae2e4471eee0501146b2945c

After every use of (no matter if there changes in any models)

python manage.py makemigrations

I've got such result

- Alter field stage on record
- Alter field stage on stagesfetch


I'm using django 2.1.3 running on debian.

Any ideas?

Thanks!

Tim Graham

unread,
Nov 10, 2018, 11:34:40 PM11/10/18
to Django users
I think you'll need to provide a sample project that reproduces the problem. I tried with the models you gave (and removed references to the models that you didn't provide) but can't reproduce.

Michał Redmerski

unread,
Nov 13, 2018, 9:25:24 AM11/13/18
to django...@googlegroups.com
Thanks for Your response,
The project is a part of our internal erp system. I'll try to make it
executable on external enviornment and then provide a code.

I have updated the gist to provide generated migrations.

Regards,

W dniu sob, 10.11.2018 o godzinie 15∶34 -0800, użytkownik Tim Graham
napisał:
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/71d98102-ec92-4e6a-91f9-9f9bbf9932f6%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages