Skip to content

Commit e2395d9

Browse files
committed
(docs): be more descriptive in backward compat comments
- so future readers have "why?" answered immediately and don't have to scour through old docs/release notes to find out why - the previous comments were also redundant
1 parent 877a9a7 commit e2395d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_serializable_model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ def serialize(self, *args):
2222

2323
class SerializableManager(models.Manager):
2424
"""Implements table-level serialization via SerializableQuerySet"""
25-
# backward compatibility for Django < 1.10
25+
# replaced by base_manager_name in Model.Meta in Django 1.10+
2626
if django.VERSION < (1, 10):
2727
# when queried from a related Model, use this Manager
2828
use_for_related_fields = True
2929

3030
def get_queryset(self):
3131
return _SerializableQuerySet(self.model)
3232

33-
# backward compatibility for Django < 1.6
33+
# renamed to get_queryset in Django 1.6+
3434
if django.VERSION < (1, 6):
3535
get_query_set = get_queryset
3636

0 commit comments

Comments
 (0)