MarisiaS / SMM

0 stars 0 forks source link

BE- Add unique and db_collation attributes to School name #47

Closed viriponce closed 6 months ago

viriponce commented 6 months ago

This PR fixes issue #46

Implementation

  1. *backend/api/models.py For the School model, added the attributes unique=Trueand db_collation='case_insensitive' to the name field.

Note that this change didn't generated a new migration since these attributes were previously added in the manual migration _0007_add_collation_unique_to_name_school_ but forgot to add them in the model declaration.