Skip to content

Add PACKAGE_TYPES choices to PackageString model#839

Open
mdhowle wants to merge 1 commit into
furlongm:mainfrom
mdhowle:fix-pkgstring-pkgtype-display
Open

Add PACKAGE_TYPES choices to PackageString model#839
mdhowle wants to merge 1 commit into
furlongm:mainfrom
mdhowle:fix-pkgstring-pkgtype-display

Conversation

@mdhowle

@mdhowle mdhowle commented Jun 8, 2026

Copy link
Copy Markdown

This fixes the AttributeError: 'PackageString' object has no attribute 'get_packagetype_display' exception.

By adding the choices kwarg for PackageString.packagetype, the get_packagetype_display() method is added to the PackageString model object.

@mdhowle mdhowle changed the title Add PACKAGE_TYPES choices Add PACKAGE_TYPES choices to PackageString model Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant