Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
metagenedb
Commits
0e2273b7
Commit
0e2273b7
authored
Jun 04, 2020
by
Kenzo-Hugo Hillion
♻
Browse files
add migration and remove log print
parent
919c3d78
Pipeline
#31633
passed with stages
in 3 minutes and 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
backend/metagenedb/apps/catalog/migrations/0026_meta_statistics.py
0 → 100644
View file @
0e2273b7
# Generated by Django 3.0.4 on 2020-06-04 14:47
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'catalog'
,
'0025_add_virgo_source'
),
]
operations
=
[
migrations
.
AlterModelOptions
(
name
=
'statistics'
,
options
=
{
'verbose_name_plural'
:
'Statistics'
},
),
]
backend/metagenedb/common/django_default/permissions.py
View file @
0e2273b7
...
...
@@ -7,7 +7,4 @@ class ListAndRetrieveAll(BasePermission):
"""
def
has_permission
(
self
,
request
,
view
):
print
(
view
.
action
)
print
(
view
.
action
in
[
'list'
,
'retrieve'
])
print
(
request
.
user
.
is_staff
)
return
view
.
action
in
[
'list'
,
'retrieve'
]
or
request
.
user
.
is_staff
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment