From 490b26006bc423aa7f38cd3010103c1887ed7ca5 Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Sat, 17 Nov 2018 13:59:34 +0100 Subject: [PATCH] [Printer] add admin.py --- printer/admin.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 printer/admin.py diff --git a/printer/admin.py b/printer/admin.py new file mode 100644 index 00000000..0c135f0c --- /dev/null +++ b/printer/admin.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +"""printer.admin +The objects, fields and datastructures visible in the Django admin view +""" + +from __future__ import unicode_literals + +from django.contrib import admin +from reversion.admin import VersionAdmin + +from .models import Digicode, PrintOperation, JobWithOptions + + + +class DigicodeAdmin(VersionAdmin): + """ + """ + pass + +class PrintOperationAdmin(VersionAdmin): + """ + """ + pass + +class JobWithOptionsAdmin(VersionAdmin): + """ + """ + pass + + +admin.site.register(Digicode, DigicodeAdmin) +admin.site.register(PrintOperation, PrintOperationAdmin) +admin.site.register(JobWithOptions, JobWithOptionsAdmin)