Commit ab4bbe9b authored by Robert's avatar Robert

Fix migrations and tests

parent 9f464b1d
# Generated by Django 2.1.3 on 2018-11-20 14:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('content2', '0013_auto_20180308_0929'),
]
operations = [
migrations.AlterModelOptions(
name='version',
options={'ordering': ('time_created',)},
),
]
......@@ -52,7 +52,8 @@ class EventRetrieveSerializer(EventListSerializer):
@permission_classes((permissions.AllowAny, ))
class EventViewSet(viewsets.ReadOnlyModelViewSet):
queryset = Association.objects.exclude_deleted().filter_events().filter(public=True) \
def get_queryset(self):
return Association.objects.exclude_deleted().filter_events().filter(public=True) \
.filter_group_containers()
def get_serializer_class(self):
......
Markdown is supported
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