Use pathlib in migration
This commit is contained in:
parent
e7de2a3d79
commit
9b13c607db
@ -1,5 +1,5 @@
|
||||
# Generated by Django 4.2.16 on 2024-09-21 15:44
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
import pikepdf
|
||||
from django.conf import settings
|
||||
@ -12,7 +12,7 @@ def source_path(self):
|
||||
if self.filename:
|
||||
fname = str(self.filename)
|
||||
|
||||
return os.path.join(settings.ORIGINALS_DIR, fname)
|
||||
return Path(settings.ORIGINALS_DIR / fname).resolve()
|
||||
|
||||
|
||||
def add_number_of_pages_to_pages_count(apps, schema_editor):
|
||||
|
Loading…
x
Reference in New Issue
Block a user