Merge pull request 'fix test' (#35) from fix/make-test into main
All checks were successful
Deploy to Production / build-and-deploy (push) Successful in 1m50s
All checks were successful
Deploy to Production / build-and-deploy (push) Successful in 1m50s
Reviewed-on: #35
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
from model_bakery import baker
|
||||||
|
|
||||||
from core.apps.evaluation.choices.history import EvaluationEventType
|
from core.apps.evaluation.choices.history import EvaluationEventType
|
||||||
|
|
||||||
@@ -51,6 +52,10 @@ class AutoevaluationhistoryModel(models.Model):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"{self.get_event_type_display()} — AutoEval #{self.auto_evaluation_id}"
|
return f"{self.get_event_type_display()} — AutoEval #{self.auto_evaluation_id}"
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def _baker(cls):
|
||||||
|
return baker.make(cls)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
db_table = "AutoEvaluationHistory"
|
db_table = "AutoEvaluationHistory"
|
||||||
verbose_name = _("Auto Evaluation History")
|
verbose_name = _("Auto Evaluation History")
|
||||||
@@ -111,6 +116,10 @@ class QuickevaluationhistoryModel(models.Model):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"{self.get_event_type_display()} — QuickEval #{self.quick_evaluation_id}"
|
return f"{self.get_event_type_display()} — QuickEval #{self.quick_evaluation_id}"
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def _baker(cls):
|
||||||
|
return baker.make(cls)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
db_table = "QuickEvaluationHistory"
|
db_table = "QuickEvaluationHistory"
|
||||||
verbose_name = _("Quick Evaluation History")
|
verbose_name = _("Quick Evaluation History")
|
||||||
|
|||||||
Reference in New Issue
Block a user