-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Description
Add it to the right of the status column.
Implementation Considerations
I believe you can look at this pr to see how columns were added in the past. Note that you no longer need to use indexes.
The curator is being tracked in the curated_by
field, and we should be able to use that as a basis for this display column.
class ReindexingHistory(models.Model):
collection = models.ForeignKey(Collection, on_delete=models.CASCADE, related_name="reindexing_history", null=True)
reindexing_status = models.IntegerField(
choices=ReindexingStatusChoices.choices,
default=ReindexingStatusChoices.REINDEXING_NOT_NEEDED,
)
old_status = models.IntegerField(choices=ReindexingStatusChoices.choices, null=True)
curated_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, null=True, blank=True)
created_at = models.DateTimeField(auto_now_add=True)
def __str__(self):
return str(self.collection) + str(self.reindexing_status)
Deliverable
arst
Dependencies
depends on
Metadata
Metadata
Assignees
Labels
No labels