GiPHouse / Website

GiPHouse website based on Django Framework
https://giphouse.nl
GNU Affero General Public License v3.0
5 stars 2 forks source link

Allow for multiple projects per registration #633

Open JobDoesburg opened 2 months ago

JobDoesburg commented 2 months ago

One-sentence description

Changes the ForeignKey to a ManyToManyField on registrations, allowing engineers and managers to be in multiple projects.

The first project is displayed as "main" project (at places where this needs to be printed).

Description

mark-boute commented 2 months ago

@JobDoesburg I added two simple tests for adding a second project and get a UNIQUE error on Semester, probably because users may only have one project per semester. Could you look into that?

Also: ignore the shell.nix file, it's for my localenv. I think it's fine to put it in resources. (thinking about it now, I'll add some comments in the file)