mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-24 20:33:11 +00:00
[Printer] add admin.py
This commit is contained in:
parent
c347feb3a6
commit
490b26006b
1 changed files with 33 additions and 0 deletions
33
printer/admin.py
Normal file
33
printer/admin.py
Normal file
|
@ -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)
|
Loading…
Reference in a new issue