1class CustomManager(models.Manager):
2 def manager_only_method(self):
3 return
4
5class CustomQuerySet(models.QuerySet):
6 def manager_and_queryset_method(self):
7 return
8
9class MyModel(models.Model):
10 objects = CustomManager.from_queryset(CustomQuerySet)()
11