test_timeseries is duplicated verbatim in TimeSeriesAdmin (admin.py:109) and TimeSeriesInline (:174); get_location_point is duplicated in PlatformSerializer (serializers.py:89) and PlatformPartialSerializer (:151). A small mixin each.
Also in admin.py: the module-level timeseries_status (:202-289) has two near-identical title joins and three near-identical format_html blocks differing only in colour and label — a (colour, label, count) tuple plus one format_html would cut it to a third.
(from #1780)
test_timeseriesis duplicated verbatim inTimeSeriesAdmin(admin.py:109) andTimeSeriesInline(:174);get_location_pointis duplicated inPlatformSerializer(serializers.py:89) andPlatformPartialSerializer(:151). A small mixin each.Also in
admin.py: the module-leveltimeseries_status(:202-289) has two near-identical title joins and three near-identicalformat_htmlblocks differing only in colour and label — a(colour, label, count)tuple plus oneformat_htmlwould cut it to a third.(from #1780)