def get_queryset(self):
kwargs = {}<EOL>if self.ends_at:<EOL><INDENT>kwargs.update({'<STR_LIT>' % self.date_field: self.ends_at})<EOL><DEDENT>return super(BeforeMixin, self).get_queryset().filter(**kwargs)<EOL>
Implements before date filtering on ``date_field``