You may refer to what I've done for displaying rating_update data.
The steps that you need to take are :
- models.py create new model
CodeforcesUserSubmission which should be similar to CodeforcesUserRatingUpdate
- serializers.py: Create a new serializer
Cf_Submission_Serializer which should be similar to Cf_RatingUpdate_Serializer
- serializer.py: add
submissions variable in Cf_User_Serializer (similar to rating_updates)
- views.py: Use code from
self.submissions at line 162 and store the relevant data in CodeforcesUserSubmission model
You might have to modify the submissions() function to adjust for the new changes.
You may refer to what I've done for displaying rating_update data.
The steps that you need to take are :
CodeforcesUserSubmissionwhich should be similar toCodeforcesUserRatingUpdateCf_Submission_Serializerwhich should be similar toCf_RatingUpdate_Serializersubmissionsvariable inCf_User_Serializer(similar torating_updates)self.submissionsat line 162 and store the relevant data inCodeforcesUserSubmissionmodelYou might have to modify the
submissions()function to adjust for the new changes.