2i2c-org / unnamed-thingity-thing

https://2i2c.org/unnamed-thingity-thing/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Add a project model #8

Closed GeorgianaElena closed 1 month ago

GeorgianaElena commented 1 month ago

Fixes #2

I had to set some defaults to None where there were Foreign keys, which means:

This is because the database was complaining with:

It is impossible to add a non-nullable field 'project' to submission without specifying a default. This is because the database needs something to populate existing rows.
Please select a fix:
 1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
 2) Quit and manually define a default value in models.py.

I added a fixme note in case we want to have a default team or anything like this 🤔 But I believe this can be discussed in the following steps