reinstalling club size
This commit is contained in:
@@ -24,7 +24,7 @@ class RowerInline(admin.StackedInline):
|
||||
('Billing Details',
|
||||
{'fields':('street_address','city','postal_code','country','paymentprocessor','customer_id')}),
|
||||
('Rower Plan',
|
||||
{'fields':('paidplan','rowerplan','paymenttype','planexpires','teamplanexpires','protrialexpires','plantrialexpires',)}),
|
||||
{'fields':('paidplan','rowerplan','paymenttype','planexpires','teamplanexpires','protrialexpires','plantrialexpires','clubsize','offercoaching')}),
|
||||
('Rower Settings',
|
||||
{'fields':
|
||||
('gdproptin','gdproptindate','weightcategory','sex','adaptiveclass','birthdate','getemailnotifications',
|
||||
@@ -60,7 +60,7 @@ class RowerInline(admin.StackedInline):
|
||||
#class UserAdmin(UserAdmin):
|
||||
class UserAdmin(admin.ModelAdmin):
|
||||
inlines = (RowerInline,)
|
||||
list_display = ('username','email','first_name','last_name','rowerplan')
|
||||
list_display = ('username','email','first_name','last_name','rowerplan','clubsize')
|
||||
|
||||
fieldsets = (
|
||||
('Personal info',
|
||||
@@ -75,6 +75,9 @@ class UserAdmin(admin.ModelAdmin):
|
||||
def rowerplan(self, obj):
|
||||
return obj.rower.rowerplan
|
||||
|
||||
def clubsize(self, obj):
|
||||
return obj.rower.clubsize
|
||||
|
||||
class WorkoutAdmin(admin.ModelAdmin):
|
||||
list_display = ('date','user','name','workouttype','boattype')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user