On trie les événements dupliqués par date de création

This commit is contained in:
Jean-Marie Favreau 2024-07-06 19:14:03 +02:00
parent 5797dc98bb
commit 9a97f12337

View File

@ -159,7 +159,9 @@ class DuplicatedEvents(models.Model):
return Event.objects.filter(possibly_duplicated=self).count()
def get_duplicated(self):
return Event.objects.filter(possibly_duplicated=self)
return Event.objects.filter(possibly_duplicated=self).order_by(
"created_date"
)
def merge_into(self, other):
# for all objects associated to this group