This is a repository to illustrate bugs in http://www.github.com/mrevutskyi/flask-restless-ng
- Create the venv based on the requirements.txt file (there is a lot not used in there, I didn't strip down the venv from my template app).
- Create the database by running
python manage.py init
- Import the fixtures from the file
SQLite Fixtures.sql
- Run the app by running
python run.py
- Go to
localhost:5000
After running, above table A, you have a button to add a new entry with a new Item A that has no linked Item B (valid per nullable=True
).
When reloading the page, the Table A isn't able to load the data from the API with error ValueError: Model <class 'NoneType'> is not known to any APIManager objects; maybe you have not called APIManager.create_api() for this model.
A button is above table C. When launch, it create a new Item C and relationship to Item A id 1 and 2. However, it seems the relationship is not commited, but the API still return 204.