mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
* Refactor: re-arrange test application
This was triggered by the need to run "python manage.py", which is impossible when serving the whole project in the same directory as is configured in INSTALLED_APPS ("auditlog_tests"). This setup is heavily inspired by other jazzband projects.
* Add check for missing migrations
10 lines
250 B
Python
10 lines
250 B
Python
from django.views.generic import DetailView
|
|
|
|
from auditlog.mixins import LogAccessMixin
|
|
|
|
from .models import SimpleModel
|
|
|
|
|
|
class SimpleModelDetailView(LogAccessMixin, DetailView):
|
|
model = SimpleModel
|
|
template_name = "simplemodel_detail.html"
|