-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ac-3: changed Migrations #1215
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
ac-3: changed Migrations #1215
Conversation
@tech-akash give the reference PR's where the changes visible in the migrations file of this PR are done. |
|
@tech-akash the migrations files are ok. The PR containing the corresponding code changes in models.py i.e. #1156 needs to be merged first, but that PR should not contain any migration file, it should only contain the code changes. After that PR is merged without migrations file this PR can be merged. So do the necessary changes in that #1156 first. |
# #details of the solution uploaded by the student | ||
# class StudentAssignment(models.Model): | ||
# student_id = models.ForeignKey(Student, on_delete=models.CASCADE) | ||
# assignment_id = models.ForeignKey(Assignment, on_delete=models.CASCADE) | ||
# upload_time = models.DateTimeField(auto_now=True) | ||
# upload_url = models.TextField(max_length=200) | ||
# 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.
Remove this comment from the PR
# self.feedback) | ||
def assignment_submit_name(instance, filename): | ||
name, ext = filename.split('.') | ||
# obj=Curriculum.objects.get(course_id=instance.course_id) |
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.
Same here
# upload_time=datetime.datetime.now(), | ||
# description=description, | ||
# document_name=name, | ||
# doc=doc |
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.
# upload_time=datetime.datetime.now(), | |
# description=description, | |
# document_name=name, | |
# doc=doc |
Remove this comment
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