AriMeidan / Fantasy-Knesset

Fantasy Knesset is a web site for creating your own Knesst, a fantasy Knesset, and to match it to the existing Knesset.
GNU General Public License v3.0
2 stars 2 forks source link

Problems adding a candidate without a party #42

Closed Nagasaki45 closed 10 years ago

Nagasaki45 commented 10 years ago

Currently adding a candidate without a party doesn't get an "independent" party. Actually, he didn't get a party at all and therefore doesn't not appear in the candidates view (the one with the search). Maybe we need to hardcode an independent party to the database and force the party foreign key of each candidate in the Candidate model.

What do you think?

AriMeidan commented 10 years ago

Party field can be empty, so we need to translate in the templates that none=independent. On Jan 24, 2014 12:59 PM, "Nagasaki45" notifications@github.com wrote:

Currently adding a candidate without a party doesn't get an "independent" party. Actually, he didn't get a party at all and therefore doesn't not appear in the candidates view (the one with the search). Maybe we need to hardcode an independent party to the database and force the party foreign key of each candidate in the Candidate model.

What do you think?

Reply to this email directly or view it on GitHubhttps://github.com/snapdragonx/Fantasy-Knesset/issues/42 .

Nagasaki45 commented 10 years ago

I think that it will be much better to remove null=True, blank=True from the party foreign key of the model and add an explicit party to the DB named "Independent" or something like this.