Commit d13e3bc7 by McKenzie Welter

entitlement admin page form

parent ff7fa721
......@@ -3,6 +3,20 @@ from django.contrib import admin
from .models import CourseEntitlement
class EntitlementForm(forms.ModelForm):
"""
Django admin form for Entitlement model
"""
def __init__(self, *args, **kwargs):
super(EntitlementForm, self).__init__(*args, **kwargs)
self.fields['expired_at'] = forms.SplitDateTimeField(
required=False, empty_value=None
)
class Meta(object):
model = MicrositeOrganizationMapping
fields = '__all__'
@admin.register(CourseEntitlement)
class EntitlementAdmin(admin.ModelAdmin):
list_display = ('user',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment