From cb4971fc25a2dbc7bfa815f3ca39a9f4eb092096 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Tue, 13 Sep 2016 19:06:20 +1000 Subject: [PATCH] Adds an admin for user profiles. Fixes #5. --- pinaxcon/registrasion/admin.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pinaxcon/registrasion/admin.py diff --git a/pinaxcon/registrasion/admin.py b/pinaxcon/registrasion/admin.py new file mode 100644 index 0000000..831b3e7 --- /dev/null +++ b/pinaxcon/registrasion/admin.py @@ -0,0 +1,9 @@ +import models + +from django.contrib import admin +from django.utils.translation import ugettext_lazy as _ + +@admin.register(models.AttendeeProfile) +class UserProfileAdmin(admin.ModelAdmin): + model = models.AttendeeProfile + list_display = ("name", "company", "name_per_invoice")