DT
Size: a a a
DT
DT
W
W
МП
sources = DataSource.objects.annotate(
week_count=Count('articles', filter=Q(articles__timestamp__gte=week_delta)),
total_count=Count('articles'),
newest_article_time=Coalesce(Subquery(newest.values('timestamp')[:1]), date(1, 1, 1))
).order_by('-newest_article_time')
СВ
R
МП
К-
def save(self, *args, **kwargs):пробовал так не реагирует
fio = self.employee
cut_fio = num.strip
self.employee = cut_fio
super().save(*args, **kwargs)
🇺Б
NC
def save(self, *args, **kwargs):пробовал так не реагирует
fio = self.employee
cut_fio = num.strip
self.employee = cut_fio
super().save(*args, **kwargs)
NC
К-
МП
🇺Б
NC
МП
МП
🇺Б
TC