Commit f0df11cc authored by Barbora Kompisova's avatar Barbora Kompisova
Browse files

fixed rest schemas for submission

parent 14be560b
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ class NestedCollection:
        'Component': ('id', 'name', 'type'),
        'Submission': ('id', 'state', 'user.id', 'user.username',
                       'project.id', 'project.codename',
                       'project.course.id', 'project.course.codename',
                       'course.id', 'course.codename',
                       'created_at', 'updated_at'),
        'ReviewItem': ('id', 'review.id', 'line', 'content', 'file', 'user.id'),
        'Secret': ('id', 'name', 'expires_at')
@@ -382,7 +382,7 @@ class Schemas:
    PARAMS = {
        'user_reduced': (*ALWAYS_ALLOWED, 'username', 'uco', 'email', 'name'),
        'users': (*ALWAYS_ALLOWED, 'username', 'uco', 'email'),
        'submissions': (*ALWAYS_ALLOWED, 'state', 'project', 'scheduled_for', 'user'),
        'submissions': (*ALWAYS_ALLOWED, 'course', 'state', 'project', 'scheduled_for', 'user'),
        'submission_state': (*ALWAYS_ALLOWED, 'state'),
        'roles': ENT_W_COURSE,
        'groups': ENT_W_COURSE,