Skip to content
Snippets Groups Projects
Unverified Commit 6078c1c3 authored by Marco Ciotola's avatar Marco Ciotola
Browse files

[DJ1.9] Cannot import models from a django-app init (even as third-party import)

parent 59bd82fb
Branches
No related tags found
No related merge requests found
"""
This django app is meant only to connect the pieces of Helios and Auth to present a clean UI
"""
import glue
......@@ -26,9 +26,11 @@ def vote_cast_send_message(user, voter, election, cast_vote, **kwargs):
# send it via the notification system associated with the auth system
user.send_message(subject, body)
helios.signals.vote_cast.connect(vote_cast_send_message)
def election_tallied(election, **kwargs):
pass
def glue():
helios.signals.vote_cast.connect(vote_cast_send_message)
helios.signals.election_tallied.connect(election_tallied)
......@@ -10,6 +10,10 @@ from helios.models import Election
from helios.security import can_create_election
from helios_auth.security import get_user
from view_utils import render_template
import glue
glue.glue() # actually apply glue helios.view <-> helios.signals
def get_election():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment