Skip to content

Commit

Permalink
Refactor: course_fk 로 외래키 이름을 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
joy-river committed Aug 14, 2024
1 parent 1bce3f9 commit db09fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KUA/today_poll/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.db import models

class TodayPoll(models.Model):
course = models.ForeignKey(
course_fk = models.ForeignKey(
'course.Course', on_delete=models.CASCADE, related_name='todaypolls')
student = models.ForeignKey('student.Student', on_delete=models.CASCADE, related_name='todaypolls')
check_attention = models.BooleanField(default=False, null=False)
Expand All @@ -16,7 +16,7 @@ def __str__(self):


class Briefing(models.Model):
course = models.ForeignKey(
course_fk = models.ForeignKey(
'course.Course', on_delete=models.CASCADE, related_name='briefings')
content = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
Expand Down

0 comments on commit db09fcc

Please sign in to comment.