add some new data to device login data, first part of broker to stake holders assignment

This commit is contained in:
2025-08-27 17:04:55 +03:30
parent 65c831d6a8
commit 680a469839
18 changed files with 167 additions and 46 deletions

12
apps/core/manager.py Normal file
View File

@@ -0,0 +1,12 @@
from django.db import models
class SoftDeleteManager(models.Manager):
""" manager for get all records with trash=False in whole project """
def get_queryset(self):
return super().get_queryset().filter(trash=False)
def all_with_deleted(self):
""" get all records, also deleted ones """
return super().get_queryset().all()