OH-SHOWN / ohshown-backend

OH!SHOWN 野生動物出沒痕跡通報系統
http://ohshown.site
MIT License
2 stars 8 forks source link

prepare test data for shown form model #89

Open tai271828 opened 1 year ago

tai271828 commented 1 year ago

With this pull request #87 , we have not only shown form created, but also using the model to manipulate the DB. However, we are still lack of the testing for the model and the corresponding CRUD. The first step would be creating the testing data.

Describe the solution you'd like Refer to commit 196863b03e511017b8b898ef050b53cecf25fc75 . We have created data for ohshown events.

Additional context https://docs.djangoproject.com/en/3.2/topics/migrations/

You should rarely, if ever, need to edit migration files by hand, but it’s entirely possible to write them manually if you need to. Some of the more complex operations are not autodetectable and are only available via a hand-written migration, so don’t be scared about editing them if you have to.