Error in model migration
TypeError: isinstance() arg 2 must be a type or tuple of types
The main reason is that there are two databases A and B to be migrated, and there is a foreign key in a that points to B. then, you must migrate the database of B before adding and migrating a again
Similar Posts:
- [Solved] Django Error: – no such table: main.auth_user__old
- Problem overview: the setcharacterencoding() method of httpservletresponse reports an error
- TypeError: Object of type ‘int32’ is not JSON serializable
- [Solved] MYSQL add foreign key error: Referencing column ‘xx’ and referenced column ‘xx’ in foreign key constraint ‘xxx’ are incompatible.
- Error: Unknown column ‘*_image_url’ in ‘field list’ [How to Solve]
- [Solved] RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same
- [Solved] Hibernate database dialect configuration; no dialect mapping for jdbc type:-9; Rare words
- Python TypeError: not all arguments converted during string formatting
- MySQL ERROR 1005: Can’t create table (errno: 150) [How to Solve]
- MySQL 1005 – errno 121 error resolution