Files
@ 34509d23eb9f
Branch filter:
Location: symposion_app/pinaxcon/proposals/admin.py - annotation
34509d23eb9f
1.7 KiB
text/x-python
Make vendored symposion into an installable Python package
This allows us to install with `pip install "-e vendor/symposion"` similar to
the other vendored packages. There's no good reason for this to be different to
the others and depend on PYTHONPATH hacking.
Re-add
This allows us to install with `pip install "-e vendor/symposion"` similar to
the other vendored packages. There's no good reason for this to be different to
the others and depend on PYTHONPATH hacking.
Re-add
04f246d85071 04f246d85071 85ee108a1f92 504cf775744a d22f8e8e35f7 9b0d83053895 504cf775744a 504cf775744a 504cf775744a 504cf775744a 504cf775744a d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 d22f8e8e35f7 504cf775744a 504cf775744a d22f8e8e35f7 504cf775744a d22f8e8e35f7 d22f8e8e35f7 4c51e5ea31e8 827a482d32e0 827a482d32e0 827a482d32e0 827a482d32e0 3f6dbc09c1ad 827a482d32e0 827a482d32e0 827a482d32e0 827a482d32e0 827a482d32e0 827a482d32e0 827a482d32e0 827a482d32e0 827a482d32e0 827a482d32e0 827a482d32e0 4c51e5ea31e8 4c51e5ea31e8 4c51e5ea31e8 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,
]
models_to_register = [
models.CopyleftComplianceProposal,
models.MemberProjectProposal,
models.ContainerDaysProposal,
models.SustainableOpenSourceBusinessProposal,
models.SoftwareWorkerCoopsProposal,
models.DiversityEquityInclusionProposal,
models.FOSSAtPlayProposal,
models.OpenSourcAIDataProposal,
models.OpenWorkProposal,
models.CommunityProposal,
models.BSDUnixProposal,
models.XMPPProposal,
models.ScienceOfCommunityProposal,
models.AArch64ARM64Proposal,
models.FOSSForEducationProposal,
models.FOSSInDailyLifeProposal,
]
for model in models_to_register:
admin.site.register(model, CategoryAdmin,
list_display = [
"id",
"title",
"speaker",
"speaker_email",
"kind",
"target_audience",
"status",
"cancelled",
],
list_filter = [
"result__status",
"cancelled",
],
)
|