KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
how ill, get my register based in the current (actual) month in my queryset?, i have a ModelManager(), that just show the LIVE register status, but now i want to show the register with LIVE status and in the current (actual) month, i know that ill make something like .filter(...), but i dont know how get the current month.. model.py #manager class LiveNoticiaManager(models.Manager): def get_query_set(self): return super(LiveNoticiaManager,self).get_query_set().filter(status=self.model.LIVE_STATUS) thanks guys.
Tags (comma-separated)
Save Edits
Cancel