relationship.py 467 B

123456789101112131415161718
  1. from django.contrib import admin
  2. from metaservicesynced.models import Relationship
  3. @admin.register(Relationship)
  4. class RelationshipAdmin(admin.ModelAdmin):
  5. list_display = (
  6. 'id',
  7. 'user_id_who',
  8. 'user_id_whom',
  9. 'neg_type',
  10. 'id_metaservice',
  11. 'requirements',
  12. 'status',
  13. 'ticket_status',
  14. 'is_global',
  15. 'is_visible',
  16. )
  17. list_filter = ('user_id_who', 'user_id_whom', 'ticket_status')