Mercurial > public > sg101
comparison donations/admin.py @ 581:ee87ea74d46b
For Django 1.4, rearranged project structure for new manage.py.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 May 2012 17:10:48 -0500 |
parents | gpp/donations/admin.py@c018872385ea |
children | 18e42866b34d |
comparison
equal
deleted
inserted
replaced
580:c525f3e0b5d0 | 581:ee87ea74d46b |
---|---|
1 """ | |
2 This file contains the admin definitions for the donations application. | |
3 """ | |
4 from django.contrib import admin | |
5 from donations.models import Donation | |
6 | |
7 class DonationAdmin(admin.ModelAdmin): | |
8 raw_id_fields = ('user', ) | |
9 | |
10 admin.site.register(Donation, DonationAdmin) |