Closed charettes closed 9 years ago
There's one remaining deprecation warning which will make the tests fail against master:
Passing callable arguments to queryset is deprecated. triggered by constructs such as Q(lang=get_language) or Q(from_date__lte=date.today).
Passing callable arguments to queryset is deprecated.
Q(lang=get_language)
Q(from_date__lte=date.today)
Should we allow the filters kwarg to be a callable?
filters
callable
def get_active_translation_filters(): return Q(lang=get_language()) active_translation = ReverseUnique( 'ArticleTranslation', filters=get_active_translation_filters )
Python 3.2 failures are unrelated, see #9.
Yes, allowing filters to be callable is the right solution.
Changes Unknown when pulling ba350bfdb993668c19a8067c9944a7acdc1a7e70 on charettes:deprecation-warnings into \ on akaariai:master**.
There's one remaining deprecation warning which will make the tests fail against master:
Passing callable arguments to queryset is deprecated.
triggered by constructs such asQ(lang=get_language)
orQ(from_date__lte=date.today)
.Should we allow the
filters
kwarg to be acallable
?