Skip to content
Snippets Groups Projects

Toggling pregrading and Identifying blank solutions

Open Ghost User requested to merge feature/toggle-pregrading into develop
Compare and Show latest version
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -115,7 +115,8 @@ class Problem(db.Model):
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(Text, nullable=False)
exam_id = Column(Integer, ForeignKey('exam.id'), nullable=False)
grading_policy = Column('grading_policy', Enum(GradingPolicy), default=GradingPolicy.set_blank, nullable=False)
grading_policy = Column('grading_policy', Enum(GradingPolicy), server_default='set_blank',
default=GradingPolicy.set_blank, nullable=False)
feedback_options = db.relationship('FeedbackOption', backref='problem', cascade='all',
order_by='FeedbackOption.id', lazy=True)
solutions = db.relationship('Solution', backref='problem', cascade='all', lazy=True)
Loading