You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

admin.py 464B

123456789101112131415
  1. from django.contrib import admin
  2. from django.db.models import get_model
  3. Source = get_model('payment', 'Source')
  4. Transaction = get_model('payment', 'Transaction')
  5. SourceType = get_model('payment', 'SourceType')
  6. class SourceAdmin(admin.ModelAdmin):
  7. list_display = ('order', 'source_type', 'amount_allocated', 'amount_debited', 'balance', 'reference')
  8. admin.site.register(Source, SourceAdmin)
  9. admin.site.register(SourceType)
  10. admin.site.register(Transaction)