project/scipycon/registration/admin.py
changeset 356 6a9bd80f5e6e
parent 310 3541adaa5cd3
child 357 bbfee5259b95
equal deleted inserted replaced
355:bce85144acd5 356:6a9bd80f5e6e
     9 from .models import Payment
     9 from .models import Payment
    10 from .models import Registration
    10 from .models import Registration
    11 from .models import Wifi
    11 from .models import Wifi
    12 
    12 
    13 class RegistrationAdmin(admin.ModelAdmin):
    13 class RegistrationAdmin(admin.ModelAdmin):
    14     list_display = ('registrant', 'full_name', 'laptop', 'slug',
    14     list_display = ('registrant', 'full_name', 'phone_num', 
    15             'email', 'city', 'organisation', 'occupation',
    15                     'laptop', 'slug', 'email', 'city',
    16             'postcode', 'tshirt', 'conference', 'tutorial',
    16                     'organisation', 'occupation', 'postcode',
    17             'sprint', 'allow_contact')
    17                     'tshirt', 'conference', 'tutorial',
       
    18                     'sprint', 'allow_contact')
    18     fieldsets = (
    19     fieldsets = (
    19         ('Details', {
    20         ('Details', {
    20             'fields': ('slug', 'registrant', 'organisation', 'occupation',
    21             'fields': ('full_name', 'phone_num', 'slug',
    21                 'city', 'tshirt')
    22                        'laptop', 'slug', 'email', 'city',
       
    23                        'organisation', 'occupation', 'postcode',
       
    24                        'tshirt', 'conference', 'tutorial',
       
    25                        'sprint', 'allow_contact')
    22         }),
    26         }),
    23         ('Information', {
    27         ('Information', {
    24             'fields': ('allow_contact',),
    28             'fields': ('allow_contact',),
    25         }),
    29         }),
    26     )
    30     )