2019-03-01から1ヶ月間の記事一覧
結果的に正解はこんな感じ from django.db.models import Count hoges = Hoge.objects.filter(fuga__regex='/mogera/[0-9]+/$').values('fuga').annotate(num_fuga=Count('fuga')).order_by('-num_fuga') [hoge['num_fuga'] for hoge in hoges] values 挟ま…
毎度忘れるのでメモ object-fit: cover; link https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit https://www.webcreatorbox.com/tech/object-fit