9 lines
207 B
Python
9 lines
207 B
Python
|
from django.db.models import Manager
|
||
|
|
||
|
|
||
|
class PublicManager(Manager):
|
||
|
|
||
|
def get_queryset(self):
|
||
|
return super(PublicManager, self).get_queryset().filter(
|
||
|
share_status=self.model.PUBLIC)
|