SOITA/users/querysets.py

7 lines
151 B
Python
Raw Normal View History

2021-12-05 15:23:29 +01:00
from django.db.models import QuerySet
class UserQuerySet(QuerySet):
def activated(self, **kwargs):
return self.filter(is_activated=True)