Ejemplo n.º 1
0
 class Meta:
     queryset = QuizLog.objects.all()
     resource_name = 'quizlog'
     filtering = {
         "quiz": ('exact', ),
         "user": ('exact', ),
     }
     authorization = UserObjectsOnlyAuthorization()
Ejemplo n.º 2
0
 class Meta:
     queryset = VideoLog.objects.all()
     resource_name = 'videolog'
     filtering = {
         "video_id": ('exact', 'in', ),
         "user": ('exact', ),
     }
     authorization = UserObjectsOnlyAuthorization()
Ejemplo n.º 3
0
 class Meta:
     queryset = ContentLog.objects.all()
     resource_name = 'contentlog'
     filtering = {
         "content_id": ('exact', 'in', ),
         "user": ('exact', ),
     }
     authorization = UserObjectsOnlyAuthorization()
Ejemplo n.º 4
0
 class Meta:
     queryset = ExerciseLog.objects.all()
     resource_name = 'exerciselog'
     filtering = {
         "exercise_id": ('exact', 'in', ),
         "user": ('exact', ),
     }
     authorization = UserObjectsOnlyAuthorization()
Ejemplo n.º 5
0
 class Meta:
     queryset = StoreTransactionLog.objects.all()
     resource_name = 'storetransactionlog'
     filtering = {
         "item": ('exact', ),
         "user": ('exact', ),
         "reversible": ('exact', ),
     }
     authorization = UserObjectsOnlyAuthorization()
Ejemplo n.º 6
0
 class Meta:
     queryset = AttemptLog.objects.all().order_by("-timestamp")
     resource_name = 'attemptlog'
     filtering = {
         "exercise_id": ('exact', ),
         "user": ('exact', ),
         "context_type": ('exact', 'in', ),
     }
     authorization = UserObjectsOnlyAuthorization()
Ejemplo n.º 7
0
 class Meta:
     queryset = ExerciseLog.objects.all()
     resource_name = 'TimelineReportExerciselog'
     excludes = [
         'attempts_before_completion', 'complete', 'counter', 'attempts',
         'signed_version', 'signature', 'resource_uri', 'id', 'language',
         'resource_uri', 'user', 'streak_progress', 'points',
         'completion_counter', 'completion_timestamp', 'exercise_id',
         'mastered', 'struggling', 'deleted'
     ]
     authorization = UserObjectsOnlyAuthorization()
Ejemplo n.º 8
0
    class Meta:
        queryset = ExerciseLog.objects.all()
        resource_name = 'KnowledgeMapExerciselog'
        filtering = {
            "exercise_id": ['exact'],
            "user": ['exact'],
            "completion_timestamp": ['gte', 'lte']
        }

        excludes = ['attempts_before_completion', 
            'complete', 'counter', 'attempts', 'language', 'signed_version',
            'points', 'completion_counter',
            'mastered', 'struggling', 'deleted'
            ]
        authorization = UserObjectsOnlyAuthorization()
Ejemplo n.º 9
0
 class Meta:
     queryset = ExerciseLog.objects.all()
     resource_name = 'ScatterReportExerciselog'
     excludes = [
         'attempts_before_completion', 'complete', 'counter', 'attempts',
         'signed_version', 'signature', 'resource_uri', 'id', 'language',
         'resource_uri', 'user', 'streak_progress', 'points',
         'completion_counter', 'completion_timestamp', 'exercise_id',
         'mastered', 'struggling', 'deleted'
     ]
     # filtering = {
     #     # "exercise_id": ('exact', ),
     #     # "user": ('exact', ),
     #     "completion_timestamp": ('gte', 'lte')
     # }
     authorization = UserObjectsOnlyAuthorization()