0
私はDjango 1.9.9を使用していますので、PassThroughManagerではなくモデルを編集するにはどうすればよいですか?django-model-utilsの新しいバージョンにPassThroughManagerがありません
from model_utils.managers import PassThroughManager
class TopicQuerySet(QuerySet):
def get_topic_today(self):
return self.filter(created_at__day=datetime.date.today()).order_by('title')
def get_topic_popular(self):
return self.annotate(entry_count=Count('entry')).order_by('-entry_count')
class Topic(TimeStampModel):
objects = PassThroughManager.for_queryset_class(TopicQuerySet)()
私はGeoManagerを使用しようとするべきでしょうか?ジャンゴの