forked from breatheco-de/apiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' of https://github.com/breatheco-de/apiv2 i…
…nto feat/event-me-new-filters
- Loading branch information
Showing
29 changed files
with
348 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
""" | ||
For each signal you want other apps to be able to receive, you have to | ||
declare a new variable here like this: | ||
""" | ||
"""For each signal you want other apps to be able to receive, you have to declare a new variable here like this:""" | ||
|
||
from django import dispatch | ||
from task_manager.django.dispatch import Emisor | ||
|
||
assessment_updated = dispatch.Signal() | ||
userassessment_status_updated = dispatch.Signal() | ||
emisor = Emisor("breathecode.assessment") | ||
|
||
assessment_updated = emisor.signal("assessment_updated") | ||
userassessment_status_updated = emisor.signal("userassessment_status_updated") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
""" | ||
For each signal you want other apps to be able to receive, you have to | ||
declare a new variable here like this: | ||
""" | ||
"""For each signal you want other apps to be able to receive, you have to declare a new variable here like this:""" | ||
|
||
from django import dispatch | ||
from task_manager.django.dispatch import Emisor | ||
|
||
assignment_created = dispatch.Signal() | ||
assignment_status_updated = dispatch.Signal() | ||
revision_status_updated = dispatch.Signal() | ||
emisor = Emisor("breathecode.assignments") | ||
|
||
assignment_created = emisor.signal("assignment_created") | ||
assignment_status_updated = emisor.signal("assignment_status_updated") | ||
revision_status_updated = emisor.signal("revision_status_updated") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
from django import dispatch | ||
from task_manager.django.dispatch import Emisor | ||
|
||
emisor = Emisor("breathecode.authenticate") | ||
|
||
# UserInvite accepted | ||
invite_status_updated = dispatch.Signal() | ||
invite_status_updated = emisor.signal("invite_status_updated") | ||
# ProfileAcademy accepted | ||
academy_invite_accepted = dispatch.Signal() | ||
profile_academy_saved = dispatch.Signal() | ||
academy_invite_accepted = emisor.signal("academy_invite_accepted") | ||
profile_academy_saved = emisor.signal("profile_academy_saved") | ||
|
||
# post_delete and post_save for User, ProfileAcademy and MentorProfileMentorProfile | ||
user_info_updated = dispatch.Signal() | ||
user_info_deleted = dispatch.Signal() | ||
user_info_updated = emisor.signal("user_info_updated") | ||
user_info_deleted = emisor.signal("user_info_deleted") | ||
|
||
cohort_user_deleted = dispatch.Signal() | ||
cohort_user_deleted = emisor.signal("cohort_user_deleted") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.