SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 0301581d authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Remove redundant admin site

parent 24d74ca4
No related branches found
No related tags found
No related merge requests found
from django.contrib import admin from django.contrib import admin
from django import forms
from .models import ProductionStream, ProductionEvent from .models import ProductionStream, ProductionEvent
...@@ -24,21 +22,3 @@ class ProductionStreamAdmin(admin.ModelAdmin): ...@@ -24,21 +22,3 @@ class ProductionStreamAdmin(admin.ModelAdmin):
admin.site.register(ProductionStream, ProductionStreamAdmin) admin.site.register(ProductionStream, ProductionStreamAdmin)
class ProductionEventAdminForm(forms.ModelForm):
stream = forms.ModelChoiceField(
queryset=ProductionStream.objects.order_by('-submission__arxiv_identifier_w_vn_nr'))
class Meta:
model = ProductionEvent
fields = '__all__'
class ProductionEventAdmin(admin.ModelAdmin):
search_field = ['stream', 'event', 'comment', 'noted_by']
list_display = ['stream', 'event', 'noted_on', 'noted_by']
form = ProductionEventAdminForm
admin.site.register(ProductionEvent, ProductionEventAdmin)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment