coding utf-8 from django db import models from models import ProblemTy

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding: utf-8
from django.db import models
from models import ProblemType, ProblemStatus, Problem
from django.contrib import admin
class ProblemTypeAdmin(models.ModelAdmin):
pass
admin.site.register(ProblemType, ProblemTypeAdmin)
class ProblemStatusAdmin(models.ModelAdmin):
pass
admin.site.register(ProblemStatus, ProblemStatusAdmin)
class ProblemAdmin(models.ModelAdmin):
list_display = ['id', 'client', 'details', 'type', 'technican', 'status', 'open_date', 'is_closed']
list_display_links = ['id', 'client']
admin.site.register(Problem, ProblemAdmin)