@@ -0,0 +1,284 @@
+from django.db.models import Q%0Afrom django.utils import timezone%0A%0Adef only_current():%0A    %22%22%22%0A    Use this query on any model with 'end_date'%0A    to limit the objects to those%0A    that have not past their end_date%0A    %22%22%22%0A    return Q(end_date=None) %7C Q(end_date__gt=timezone.now())%0A%0A

Add missing import 'core.models.query'