Skip to content

Commit

Permalink
feat: Allow Collection to override publication policy, #192
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Nov 7, 2024
1 parent ece7f21 commit 7ab76f3
Show file tree
Hide file tree
Showing 10 changed files with 510 additions and 467 deletions.
1 change: 1 addition & 0 deletions data_registry/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ class CollectionAdmin(CascadeTaskMixin, TabbedDjangoJqueryTranslationAdmin):
"language_ru",
"update_frequency",
"license_custom",
"publication_policy",
"source_url",
),
},
Expand Down
1 change: 1 addition & 0 deletions data_registry/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Meta:
"title": widgets.AdminTextInputWidget(attrs={"style": "width: 60em"}), # default 20em
"country": widgets.AdminTextInputWidget(),
"language": widgets.AdminTextInputWidget(),
"publication_policy": widgets.AdminTextInputWidget(attrs={"style": "width: 60em"}),
"source_url": widgets.AdminTextInputWidget(attrs={"style": "width: 60em"}),
"description": MarkdownWidget(attrs={"rows": 1}),
"description_long": MarkdownWidget(attrs={"rows": 1}),
Expand Down
Loading

0 comments on commit 7ab76f3

Please sign in to comment.