forked from PnX-SI/gn_module_monitoring
-
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.
- Loading branch information
Maxime Vergez
committed
Dec 6, 2022
1 parent
559a0ec
commit 5cb5dfa
Showing
2 changed files
with
24 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from flask_admin.contrib.sqla import ModelView | ||
from geonature.core.admin.admin import CruvedProtectedMixin | ||
|
||
|
||
from gn_module_monitoring.monitoring.models import BibCategorieSite | ||
|
||
|
||
class BibCategorieSiteView(CruvedProtectedMixin, ModelView): | ||
""" | ||
Surcharge de l'administration des catégories de sites | ||
""" | ||
|
||
module_code = "MONITORINGS" | ||
object_code = None | ||
|
||
def __init__(self, session, **kwargs): | ||
# Référence au model utilisé | ||
super(BibCategorieSiteView, self).__init__(BibCategorieSite, session, **kwargs) |