How can one query the django_migrations table from a view? For instance(What I have tried and of course not working)
from django.db import migrations
latest_migration = migrations.objects.all().order_by('-applied')[0]
If possible, how should one proceed?