Added valid column to VouchersAdmin.
This commit is contained in:
		@@ -15,8 +15,7 @@ from lostplaces.forms import ExplorerCreationForm, ExplorerChangeForm
 | 
			
		||||
class VoucherAdmin(admin.ModelAdmin):
 | 
			
		||||
    fields = ['code', 'expires_when', 'created_when']
 | 
			
		||||
    readonly_fields = ['created_when']
 | 
			
		||||
    list_display = ('__str__', 'code', 'created_when', 'expires_when')
 | 
			
		||||
    # todo: is_valid (Wurstwasser)
 | 
			
		||||
    list_display = ('__str__', 'code', 'created_when', 'expires_when', 'valid')
 | 
			
		||||
 | 
			
		||||
class PhotoAlbumsAdmin(admin.ModelAdmin):
 | 
			
		||||
    list_display = ('label', 'place', 'url' )
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user