-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ac-3: week-8: Prof can submit Marks to assignment and made site responsive #1156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
looks good to me, ready to merge @akshatnema |
# class StudentAssignment(models.Model): | ||
# student_id = models.ForeignKey(Student, on_delete=models.CASCADE) | ||
# assignment_id = models.ForeignKey(CourseAssignment, on_delete=models.CASCADE) | ||
# upload_time = models.DateTimeField(auto_now=True) | ||
# # upload_url = models.TextField(max_length=200) | ||
# doc = models.FileField(upload_to=assignment_submit_name, null=True, blank=True) | ||
# score = models.IntegerField(null=True) #score is submitted by faculty | ||
# feedback = models.CharField(max_length=100, null=True) #feedback by the faculty for the solution of the assignment submitted | ||
# assign_name = models.CharField(max_length=100) | ||
|
||
# def __str__(self): | ||
# return '{} - {} - {} - {} - {}'.format( | ||
# self.pk, self.student_id, | ||
# self.assignment_id, self.score, | ||
# self.feedback) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kindly remove the comment which is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will remove it after i am sure that any other module isn't using it
@PranshuNayak @samay-rgb Kindly review this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please push the migrations for the proposed schema changes.
d46da63
to
6d5c360
Compare
@PranshuNayak @samay-rgb waiting for your review. @tech-akash Kindly resolve the merge conflicts. |
@tech-akash kindly push the remaining migrations too as discussed yesterday. |
description = models.CharField(max_length=100) | ||
document_name = models.CharField(max_length=40) | ||
document_url = models.CharField(max_length=500, null=True,blank=True) | ||
document_url = models.CharField(max_length=100, null=True,blank=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use URLField instead of charfield for document_url . For charfields use max_length=255
course_id = models.ForeignKey(Course, on_delete=models.CASCADE) | ||
upload_time = models.DateTimeField(auto_now=True) | ||
document_name = models.CharField(max_length=40) | ||
description = models.CharField(max_length=100) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For charfields use max_length=255
@akshatnema Kindly revert the merged changes of this PR as it wasn't approved yet. |
…te responsive (#1156)" (#1207) This reverts commit 3fba856. Co-authored-by: Samay Sagar <[email protected]>
Issue that this pull request solves
Closes: # (issue number)
Proposed changes
Brief description of what is fixed or changed
Types of changes
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that applyScreenshots
Please attach the screenshots of the changes made in case of change in user interface
Other information
Any other information that is important to this pull request