fix: typo/logic error in get_base_name

This commit is contained in:
Robert Sparks 2023-07-07 12:56:23 -05:00
parent f30613973c
commit e6a1a17973
No known key found for this signature in database
GPG key ID: 6E2A6A5775F91318

View file

@ -172,7 +172,7 @@ class DocumentInfo(models.Model):
if not hasattr(self, '_cached_base_name'):
if self.uploaded_filename:
self._cached_base_name = self.uploaded_filename
if self.type_id == 'rfc':
elif self.type_id == 'rfc':
self._cached_base_name = "%s.txt" % self.canonical_name()
elif self.type_id == 'draft':
if self.is_dochistory():