This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Naive approach: | |
# 1. Create two MySQLDatabase instances for the same MySQL database: | |
# * One instantiated with your CRUD-privileged user | |
# * One instantiated with your DDL-privileged user | |
# | |
# 2. Next, define your test model with `database=crud_instance` in | |
# its Meta subclass. | |
# | |
# 3. Then establish a database connection from the ddl_instance and | |
# issue `create_tables()`. |