Skip to content

Commit

Permalink
ubccr#222: Added ability to duplicate resources in Admin portal in th…
Browse files Browse the repository at this point in the history
…e form of a 'Save as new' button on each resource page
  • Loading branch information
brisco17 committed Mar 15, 2022
1 parent 1466489 commit bb9da73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coldfront/core/resource/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class ResourceAdmin(SimpleHistoryAdmin):
list_filter = ('resource_type__name', 'is_allocatable', 'is_available', 'is_public', 'requires_payment' )
inlines = [ResourceAttributeInline, ]
filter_horizontal = ['allowed_groups', 'allowed_users', 'linked_resources', ]
save_as = True

def resource_type_name(self, obj):
return obj.resource_type.name
Expand Down

0 comments on commit bb9da73

Please sign in to comment.