mozilla / gameon

INACTIVE - http://mzl.la/ghe-archive - Simple playdoh site to support the gameon 2012 challenge
BSD 3-Clause "New" or "Revised" License
0 stars 6 forks source link

Add a foreign key to the challenge model from the submissions model #135

Closed rossbruniges closed 2 years ago

rossbruniges commented 11 years ago

If we want to continue to use the same platform for the new years challenge this is one of the keys we want to go for, as it will allow us to differentiate between different years submissions.

This is fairly easy to do in Django but for some reason I didn't do this - with this in place we can use the variable in https://github.com/mozilla/gameon/blob/master/gameon/settings/base.py#L14 to associate each new submission with a specific challenge.

As the challenge only has one set of submissions we can select all of the original years entries by grabbing those with an empty 'challenge' - or create a data migration that adds in a reference to the 2013 challenge to all existing challenges.