Closed Nagasaki45 closed 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 .
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.
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?