# HG changeset patch # User Brian Neal # Date 1382666583 18000 # Node ID 18e42866b34daabaea418a1a8f6e7d6ab8c1de0d # Parent b559fbc7a2364d4d2004d400fdd2dde59ef6ac87 For #56, default to anonymous radio button on donations form. Also improve the donations admin page with a date hierarchy and other fields on the list display. diff -r b559fbc7a236 -r 18e42866b34d donations/admin.py --- a/donations/admin.py Sat Oct 19 11:32:35 2013 -0500 +++ b/donations/admin.py Thu Oct 24 21:03:03 2013 -0500 @@ -1,10 +1,13 @@ """ This file contains the admin definitions for the donations application. + """ from django.contrib import admin from donations.models import Donation class DonationAdmin(admin.ModelAdmin): - raw_id_fields = ('user', ) + raw_id_fields = ['user'] + date_hierarchy = 'payment_date' + list_display = ['__unicode__', 'payer_email', 'payment_date', 'memo'] admin.site.register(Donation, DonationAdmin) diff -r b559fbc7a236 -r 18e42866b34d sg101/templates/donations/index.html --- a/sg101/templates/donations/index.html Sat Oct 19 11:32:35 2013 -0500 +++ b/sg101/templates/donations/index.html Thu Oct 24 21:03:03 2013 -0500 @@ -81,7 +81,7 @@
  • {% endif %} -
  • +