Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

<Model>, which has either not been installed or is abstract. #43

Closed
erikcw opened this issue May 28, 2014 · 4 comments
Closed

<Model>, which has either not been installed or is abstract. #43

erikcw opened this issue May 28, 2014 · 4 comments

Comments

@erikcw
Copy link

erikcw commented May 28, 2014

I just upgraded from django-fsm 1.6 to 2.1 and now get this error when trying to run any management command:

CommandError: One or more models did not validate:
anx.dimensioncre: 'cre' has a relation with model portal.Cre, which has either not been installed or is abstract.

The only change I made was upgrading from django-fsm 1.6. The changelog says something about the release being backwards incompatible -- but doesn't document an upgrade procedure.

I'm running Django 1.6.5.

@kmmbvnr
Copy link
Collaborator

kmmbvnr commented May 29, 2014

I have no ideas what it could be. For migrating to new django_fsm you should just change imports. And import everything directly from django_FSM package.

@kmmbvnr
Copy link
Collaborator

kmmbvnr commented May 29, 2014

Did you change imports?

@erikcw
Copy link
Author

erikcw commented May 29, 2014

I hadn't changed the imports. Changing them fixed the issue.

Thought now I get a TypeError: transition() got an unexpected keyword argument 'save' traceback. What is the recommended pattern for moving save=True? Should a call to self.save() be placed inside the transition method?

@kmmbvnr
Copy link
Collaborator

kmmbvnr commented May 29, 2014

Yep, explisit save() call is better

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

No branches or pull requests

2 participants