# -*- coding: utf-8  -*-
from django.contrib import admin

from niqati.models import Code, Code_Collection, Code_Order

class CodeAdmin(admin.ModelAdmin):
    #list_display = ('code_string', 'collection__parent_order__episode', 'ordering_club', 'collection__code_category', 'user', 'redeem_date',)

    def ordering_club(self, obj):
        return obj.episode.activity.primary_club.name

class CodeCollectionAdmin(admin.TabularInline):
    model = Code_Collection
    extra = 0
    #readonly_fields = ('code_category', 'code_count', 'approved', 'date_created', 'admin_asset_link', )
    exclude = ('asset', )

class CodeOrderAdmin(admin.ModelAdmin):
    list_display = ('episode', 'ordering_club', 'date_ordered')
    readonly_fields = ('episode', 'ordering_club', 'date_ordered', )
    inlines = (CodeCollectionAdmin, )

    def ordering_club(self, obj):
        return obj.episode.activity.primary_club.name

admin.site.register(Code, CodeAdmin)
admin.site.register(Code_Order, CodeOrderAdmin)

@@ -475,17 +475,16 @@
 = 0%0A    
-#
 readonly
@@ -530,78 +530,44 @@
 ', '
-approved', 'date_created', 'admin_asset_link', )%0A    exclude = ('asset
+date_downloaded', 'admin_coupon_link
 ', )
@@ -691,24 +691,37 @@
 y_fields = (
+'submitter', 
 'episode', '

Upgrade niqati admin view.