10 lines
243 B
Python
10 lines
243 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)
|
|
)
|