Commit 0e2273b7 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

add migration and remove log print

parent 919c3d78
Pipeline #31633 passed with stages
in 3 minutes and 22 seconds
# 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 = [
options={'verbose_name_plural': 'Statistics'},
......@@ -7,7 +7,4 @@ class ListAndRetrieveAll(BasePermission):
def has_permission(self, request, view):
print(view.action in ['list', 'retrieve'])
return view.action in ['list', 'retrieve'] or request.user.is_staff
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment