Files
@ c8218bb9d0ea
Branch filter:
Location: symposion_app/pinaxcon/proposals/admin.py - annotation
c8218bb9d0ea
1.6 KiB
text/x-python
Correct variable name to reflect what it's naming
IT's not the container name, it's the image name. Fix the name to be
less confusing.
IT's not the container name, it's the image name. Fix the name to be
less confusing.
04f246d85071 04f246d85071 85ee108a1f92 504cf775744a d22f8e8e35f7 9b0d83053895 504cf775744a 504cf775744a 504cf775744a 504cf775744a 504cf775744a d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 504cf775744a 504cf775744a d22f8e8e35f7 504cf775744a d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 | from django.contrib import admin
from pinaxcon.proposals import models
from symposion.proposals import models as symposion_models
from symposion.reviews.models import ProposalResult
class CategoryAdmin(admin.ModelAdmin):
class AdditionalSpeakerInline(admin.TabularInline):
model = symposion_models.AdditionalSpeaker
class ProposalResultInline(admin.TabularInline):
model = ProposalResult
readonly_fields = ["score"]
fields = ["status"]
inlines = [
AdditionalSpeakerInline,
ProposalResultInline,
]
for model in [ models.TalkProposal, models.TutorialProposal,
models.MiniconfProposal, models.SysAdminProposal,
models.KernelProposal, models.GamesProposal,
models.OpenHardwareProposal, models.ClsXLCAProposal,
models.FuncProgProposal, models.OpenEdProposal,
models.OpenGLAMProposal, models.FPGAProposal, models.DevDevProposal,
models.ArtTechProposal, models.BioInformaticsProposal ]:
admin.site.register(model, CategoryAdmin,
list_display = [
"id",
"title",
"speaker",
"speaker_email",
"kind",
"target_audience",
"status",
"cancelled",
],
list_filter = [
"result__status",
"cancelled",
],
)
|