improve quality of life on help ticket admin
parent
bc097cd1e1
commit
c422ba6008
|
@ -4,3 +4,4 @@ from .models import Ticket
|
||||||
@admin.register(Ticket)
|
@admin.register(Ticket)
|
||||||
class TicketAdmin(admin.ModelAdmin):
|
class TicketAdmin(admin.ModelAdmin):
|
||||||
list_display = ('issue_status', 'issue_type', 'name', 'email')
|
list_display = ('issue_status', 'issue_type', 'name', 'email')
|
||||||
|
fields = ('name', 'email', 'issue_status', 'issue_type', 'issue_text')
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.10.2 on 2017-11-10 23:23
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('help', '0002_ticket_issue_status'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='ticket',
|
||||||
|
name='name',
|
||||||
|
field=models.CharField(max_length=100),
|
||||||
|
),
|
||||||
|
]
|
|
@ -18,7 +18,7 @@ ISSUE_STATUS_CHOICES = (
|
||||||
|
|
||||||
|
|
||||||
class Ticket(Model):
|
class Ticket(Model):
|
||||||
name = TextField(blank=False, null=False)
|
name = CharField(blank=False, null=False, max_length=100)
|
||||||
email = EmailField(blank=False, null=False)
|
email = EmailField(blank=False, null=False)
|
||||||
issue_type = CharField(choices=ISSUE_TYPE_CHOICES,
|
issue_type = CharField(choices=ISSUE_TYPE_CHOICES,
|
||||||
blank=False,
|
blank=False,
|
||||||
|
|
Loading…
Reference in New Issue