Skip to content

Commit

Permalink
add team_categories to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoamaral committed May 25, 2024
1 parent abfc628 commit e3a4d85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django/gregory/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ArticleAdmin(admin.ModelAdmin):
('Article Information', {
'fields': (
'title', 'link', 'doi', 'summary', 'teams', 'subjects', 'source', 'sources',
'published_date', 'discovery_date', 'authors', 'categories',
'published_date', 'discovery_date', 'authors', 'categories','team_categories',
'entities', 'relevant', 'noun_phrases', 'sent_to_teams',
'sent_to_subscribers', 'kind', 'access', 'publisher',
'container_title', 'crossref_check', 'takeaways',
Expand All @@ -49,8 +49,8 @@ class ArticleAdmin(admin.ModelAdmin):
class TrialAdmin(admin.ModelAdmin):
# a list of displayed columns name.
list_display = ['trial_id', 'title', 'last_updated']
fields = ['discovery_date','last_updated','title','summary','link','published_date','source','sources','teams','subjects','relevant','categories','identifiers','export_date','internal_number','last_refreshed_on','scientific_title','primary_sponsor','retrospective_flag','date_registration','source_register','recruitment_status','other_records','inclusion_agemin','inclusion_agemax','inclusion_gender','date_enrollement','target_size','study_type','study_design','phase','countries','contact_firstname','contact_lastname','contact_address','contact_email','contact_tel','contact_affiliation','inclusion_criteria','exclusion_criteria','condition','intervention','primary_outcome','secondary_outcome','secondary_id','source_support','ethics_review_status','ethics_review_approval_date','ethics_review_contact_name','ethics_review_contact_address','ethics_review_contact_phone','ethics_review_contact_email','results_date_completed','results_url_link']
readonly_fields = ['last_updated']
fields = ['discovery_date','last_updated','title','summary','link','published_date','source','sources','teams','subjects','relevant','categories','team_categories','identifiers','export_date','internal_number','last_refreshed_on','scientific_title','primary_sponsor','retrospective_flag','date_registration','source_register','recruitment_status','other_records','inclusion_agemin','inclusion_agemax','inclusion_gender','date_enrollement','target_size','study_type','study_design','phase','countries','contact_firstname','contact_lastname','contact_address','contact_email','contact_tel','contact_affiliation','inclusion_criteria','exclusion_criteria','condition','intervention','primary_outcome','secondary_outcome','secondary_id','source_support','ethics_review_status','ethics_review_approval_date','ethics_review_contact_name','ethics_review_contact_address','ethics_review_contact_phone','ethics_review_contact_email','results_date_completed','results_url_link']
readonly_fields = ['last_updated', 'categories', 'team_categories']
class SourceAdmin(admin.ModelAdmin):
# a list of displayed columns name.
list_display = ['name','source_for','subject','method']
Expand Down

0 comments on commit e3a4d85

Please sign in to comment.