Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (7 sloc) 267 Bytes
from django.db import models
class SocialNetworkManager(models.Manager):
A custom manager that only returns active social networks
def get_query_set(self):
return super(SocialNetworkManager, self).get_query_set().filter(active=True)
Jump to Line
Something went wrong with that request. Please try again.