Commit 4d067165 authored by Sli's avatar Sli

Election's trad

parent c07f4930
Pipeline #636 failed with stage
in 3 minutes and 11 seconds
......@@ -125,7 +125,7 @@ class Candidature(models.Model):
role = models.ForeignKey(Role, related_name='candidatures', verbose_name=_("role"))
user = models.ForeignKey(User, verbose_name=_('user'), related_name='candidates', blank=True)
program = models.TextField(_('description'), null=True, blank=True)
election_list = models.ForeignKey(ElectionList, related_name='candidatures', verbose_name=_('election_list'))
election_list = models.ForeignKey(ElectionList, related_name='candidatures', verbose_name=_('election list'))
def can_be_edited_by(self, user):
return (user == self.user)
......
......@@ -12,5 +12,7 @@
{% csrf_token %}
</form>
</section>
{%- else -%}
{% trans %}Candidature are closed for this election{% endtrans %}
{%- endif %}
{% endblock content %}
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment