resource.py 396 B

1234567891011121314151617
  1. from django.contrib import admin
  2. from dbsynce.models import Resource
  3. @admin.register(Resource)
  4. class ResourceAdmin(admin.ModelAdmin):
  5. list_display = (
  6. 'id',
  7. 'type_id',
  8. 'user_id',
  9. 'requirements',
  10. 'status',
  11. 'ticket_status',
  12. 'id_metaservice',
  13. 'is_global',
  14. 'is_visible',
  15. )
  16. list_filter = ('user_id', 'ticket_status')