Skip to content

Commit

Permalink
Merge branch 'development' into cms-hotfix-7.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo authored Dec 6, 2023
2 parents b50a539 + 7281211 commit 4c62357
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions errata/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ class Meta:
class CustomExportResource(resources.ModelResource):
location = Field(attribute='location', column_name='Location')
detail = Field(attribute='detail', column_name='Detail')
resolution = Field(attribute='resolution', column_name='Resolution')
resolution_notes = Field(attribute='resolution_notes', column_name='Resolution Notes')
error_type = Field(attribute='error_type', column_name='Error Type')

class Meta:
model = Errata
fields = ('location', 'detail', 'resolution', 'error_type')
export_order = ('location', 'detail', 'resolution', 'error_type')
fields = ('location', 'detail', 'resolution_notes', 'error_type')
export_order = ('location', 'detail', 'resolution_notes', 'error_type')

def custom_export_action(modeladmin, request, queryset):
resource = CustomExportResource()
Expand Down

0 comments on commit 4c62357

Please sign in to comment.