Bugfix
This commit is contained in:
parent
6a7aa42237
commit
005ff84e2f
@ -438,7 +438,7 @@ class Document(models.Model):
|
||||
filename = os.path.basename(str(self.upload))
|
||||
inst = auto_tag(filename)
|
||||
if inst:
|
||||
self.sections.get_or_create(tag=inst.abbreviate())
|
||||
self.sections.get_or_create(tag=inst.tag)
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
self.upload.delete(save=False)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user