-
Notifications
You must be signed in to change notification settings - Fork 102
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
1 parent
3036c5f
commit 0544155
Showing
5 changed files
with
137 additions
and
8 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
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,34 @@ | ||
from apptax.admin.admin_view import ( | ||
BibListesView, | ||
TaxrefView, | ||
TMediasView, | ||
BibAttributsView, | ||
BibThemesView, | ||
) | ||
from geonature.core.admin.utils import CruvedProtectedMixin | ||
|
||
|
||
class CruvedProtectedBibListesView(CruvedProtectedMixin, BibListesView): | ||
module_code = "TAXHUB" | ||
object_code = "LISTE" | ||
extra_actions_perm = {".import_cd_nom_view": "C"} | ||
|
||
|
||
class CruvedProtectedTaxrefView(CruvedProtectedMixin, TaxrefView): | ||
module_code = "TAXHUB" | ||
object_code = "TAXON" | ||
|
||
|
||
class CruvedProtectedTMediasView(CruvedProtectedMixin, TMediasView): | ||
module_code = "TAXHUB" | ||
object_code = "TAXON" | ||
|
||
|
||
class CruvedProtectedBibAttributsView(CruvedProtectedMixin, BibAttributsView): | ||
module_code = "TAXHUB" | ||
object_code = "ATTRIBUT" | ||
|
||
|
||
class CruvedProtectedBibThemes(CruvedProtectedMixin, BibThemesView): | ||
module_code = "TAXHUB" | ||
object_code = "THEME" |
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