This repository has been archived by the owner on Jan 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move AmendementSaisi event to Visam models
- Loading branch information
Showing
4 changed files
with
21 additions
and
17 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 +1,2 @@ | ||
from .conseil import Conseil, Formation # noqa | ||
from .events import AmendementSaisi # noqa |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from string import Template | ||
|
||
from zam_repondeur.models.events.amendement import AmendementEvent | ||
|
||
|
||
class AmendementSaisi(AmendementEvent): | ||
__mapper_args__ = {"polymorphic_identity": "amendement_saisi"} | ||
|
||
icon = "edit" | ||
|
||
summary_template = Template( | ||
f"L’amendement a été saisi par <abbr title='$email'>$user</abbr>." | ||
) | ||
|
||
def apply(self) -> None: | ||
pass | ||
|
||
def render_details(self) -> str: | ||
return "" |
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