Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions backend/apps/api/v1/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class ColumnInline(OrderedStackedInline, StackedInlinePaginated):
show_change_link = True
show_full_result_count = True

per_page = 20
per_page = 10

fields = ColumnInlineForm.Meta.fields + [
"order",
Expand Down Expand Up @@ -206,9 +206,11 @@ class TableInline(OrderedStackedInline, StackedInlinePaginated):
per_page = 5
show_change_link = True
fields = [
"id",
"slug",
"order",
"move_up_down_links",
] + TableInlineForm.Meta.fields
]
readonly_fields = [
"order",
"move_up_down_links",
Expand All @@ -224,12 +226,8 @@ class RawDataSourceInline(OrderedTranslatedInline):
show_change_link = True
fields = [
"order",
"move_up_down_links",
"id",
"name",
"description",
"availability",
"url",
]
readonly_fields = [
"order",
Expand Down Expand Up @@ -612,7 +610,6 @@ class DatasetAdmin(OrderedInlineModelAdminMixin, TabbedTranslationAdmin):
"id",
"full_slug",
"spatial_coverage",
"temporal_coverage",
"page_views",
"created_at",
"updated_at",
Expand All @@ -626,9 +623,8 @@ class DatasetAdmin(OrderedInlineModelAdminMixin, TabbedTranslationAdmin):
list_display = [
"name",
"get_organizations",
"temporal_coverage",
"related_tables",
"related_raw_data_sources",
# "related_tables",
# "related_raw_data_sources",
"updated_at",
]
ordering = ["-updated_at"]
Expand Down
14 changes: 0 additions & 14 deletions backend/apps/api/v1/forms/admin_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,6 @@ class Meta(UUIDHiddenIdForm):
"id",
"slug",
"name",
"description",
"status",
"license",
"partner_organization",
"pipeline",
"is_directory",
"published_by",
"data_cleaned_by",
"data_cleaning_description",
"data_cleaning_code_url",
"auxiliary_files_url",
"architecture_url",
"source_bucket_name",
"is_closed",
]
readonly_fields = [
"order",
Expand Down
Loading