improve quality of life on help ticket admin

pull/27/head
nathaniel smith 2017-11-10 15:33:09 -08:00
parent bc097cd1e1
commit c422ba6008
3 changed files with 22 additions and 1 deletions

View File

@ -4,3 +4,4 @@ from .models import Ticket
@admin.register(Ticket)
class TicketAdmin(admin.ModelAdmin):
list_display = ('issue_status', 'issue_type', 'name', 'email')
fields = ('name', 'email', 'issue_status', 'issue_type', 'issue_text')

View File

@ -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),
),
]

View File

@ -18,7 +18,7 @@ ISSUE_STATUS_CHOICES = (
class Ticket(Model):
name = TextField(blank=False, null=False)
name = CharField(blank=False, null=False, max_length=100)
email = EmailField(blank=False, null=False)
issue_type = CharField(choices=ISSUE_TYPE_CHOICES,
blank=False,