From 4423a40b5c4e7a155f4ee69057945edb88405d44 Mon Sep 17 00:00:00 2001 From: Jono Yang Date: Fri, 11 Feb 2022 15:06:15 -0800 Subject: [PATCH] Revert change to name field in PackageURLMixin #73 Signed-off-by: Jono Yang --- CHANGELOG.rst | 1 - src/packageurl/contrib/django/models.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e492507..06ef7f8 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,7 +5,6 @@ Changelog ------------------ - Do not create a generic PackageURL for URLs without a path in url2purl #72 -- Increase the name field size for packageurl.contrib.django.models.PackageURLMixin to 255 #73 - Use project name as the Package name when creating generic sourceforge PackageURLs #74 - Update PyPI route pattern in url2purl to handle different file name formats #76 - Create generic PackageURL for code.google.com archive URLs #78 diff --git a/src/packageurl/contrib/django/models.py b/src/packageurl/contrib/django/models.py index 2973a3a..c1550b8 100644 --- a/src/packageurl/contrib/django/models.py +++ b/src/packageurl/contrib/django/models.py @@ -108,7 +108,7 @@ class PackageURLMixin(models.Model): ) name = models.CharField( - max_length=255, + max_length=100, blank=True, help_text=_('Name of the package.'), )