# browsershots.org - Test your web design in different browsers # Copyright (C) 2007 Johann C. Rocholl # # Browsershots is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Browsershots is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . """ Admin for the revenue app. """ __revision__ = "$Rev$" __date__ = "$Date$" __author__ = "$Author$" from django.contrib import admin from shotserver04.revenue.models import UserRevenue, UserPayment from shotserver04.revenue.models import NonProfit, UserDonation class UserRevenueAdmin(admin.ModelAdmin): list_display = ('user', 'year', 'month', 'screenshots', 'percent', 'euros', 'balance', 'date') raw_id_fields = ('user', ) class UserPaymentAdmin(admin.ModelAdmin): list_display = ('user', 'currency', 'amount', 'euros', 'date') raw_id_fields = ('user', ) class NonProfitAdmin(admin.ModelAdmin): list_display = ('name', 'url') class UserDonationAdmin(admin.ModelAdmin): list_display = ('user', 'non_profit', 'currency', 'amount', 'euros', 'date') raw_id_fields = ('user', ) admin.site.register(UserRevenue, UserRevenueAdmin) admin.site.register(UserPayment, UserPaymentAdmin) admin.site.register(NonProfit, NonProfitAdmin) admin.site.register(UserDonation, UserDonationAdmin)