Changeset 9cc65af in OpenWorkouts-current for ow/models


Ignore:
Timestamp:
Oct 13, 2019, 8:13:04 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current
Children:
b9a2c00
Parents:
8340661
Message:

Make root.emails return emails sorted alphabetically
(makes our life easier in some randomly failing tests)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/models/root.py

    r8340661 r9cc65af  
    121121    def emails(self):
    122122        """
    123         Return all emails currently in use by users
     123        Return all emails currently in use by users, sorted alphabetically
    124124        """
    125         return [user.email for user in self.users]
     125        return sorted([user.email for user in self.users])
    126126
    127127    @property
Note: See TracChangeset for help on using the changeset viewer.