Skip to content

Commit

Permalink
Merge pull request #188 from CogStack/project-view-filters
Browse files Browse the repository at this point in the history
CU-8694etf0n: Improve project API
  • Loading branch information
tomolopolis committed Apr 29, 2024
2 parents 2dffa57 + e024570 commit 1f84f92
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions webapp/api/api/migrations/0075_auto_20240429_1350.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 2.2.28 on 2024-04-29 13:50

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0074_auto_20240215_1024'),
]

operations = [
migrations.AddField(
model_name='metaannotation',
name='last_modified',
field=models.DateTimeField(auto_now=True),
),
migrations.AddField(
model_name='project',
name='last_modified',
field=models.DateTimeField(auto_now=True),
),
]
2 changes: 1 addition & 1 deletion webapp/api/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class ProjectAnnotateEntitiesViewSet(viewsets.ModelViewSet):
permission_classes = [permissions.IsAuthenticated]
queryset = ProjectAnnotateEntities.objects.all()
serializer_class = ProjectAnnotateEntitiesSerializer
filterset_fields = ['members', 'dataset', 'id']
filterset_fields = ['members', 'dataset', 'id', 'project_status', 'annotation_classification']

def get_queryset(self):
user = self.request.user
Expand Down

0 comments on commit 1f84f92

Please sign in to comment.