Make ordering of offers consistent when priority is equal
Previously the tests would sometimes fail since the ordering was
inconsistent when there were multiple with the same priority. Adding
pk to the ordering will make fix this
@@ -153,7 +153,7 @@ class AbstractConditionalOffer(models.Model):
class Meta:
abstract = True
app_label = 'offer'
- ordering = ['-priority']
+ ordering = ['-priority', 'pk']
verbose_name = _("Conditional offer")
verbose_name_plural = _("Conditional offers")
