Skip to content

Commit

Permalink
Merge pull request #27 from Hafnernuss/release/0.4.0
Browse files Browse the repository at this point in the history
Release 0.4.0
  • Loading branch information
Hafnernuss authored May 22, 2023
2 parents dbfbc0f + a179f90 commit 78d644e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
19 changes: 19 additions & 0 deletions dynamic_file/migrations/0002_alter_dynamicfile_file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 4.1.3 on 2023-05-22 16:21

from django.db import migrations, models
import dynamic_file.storage


class Migration(migrations.Migration):

dependencies = [
('dynamic_file', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='dynamicfile',
name='file',
field=models.FileField(help_text='The uploaded file', storage=dynamic_file.storage.DynamicFileSystemStorage(), upload_to=''),
),
]
4 changes: 4 additions & 0 deletions dynamic_file/models/file.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
from django.db import models
from django.utils.translation import gettext as _
from dynamic_file.models.base import DynamicFileBase
from dynamic_file.storage import DynamicFileSystemStorage

fs = DynamicFileSystemStorage()


class DynamicFile(DynamicFileBase):
file = models.FileField(
storage=fs,
help_text=_('The uploaded file')
)
'''
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "django-dynamic-file"
version = "0.3.0"
version = "0.4.0"
description = "A flexible approach to handling and serving files with django"
readme = "README.rst"
authors = [{ name = "Philipp Hafner", email = "[email protected]" }]
Expand Down Expand Up @@ -35,7 +35,7 @@ package-dir = {"dynamic_file" = "dynamic_file"}

[tool.bumpver]
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
current_version = "0.3.0"
current_version = "0.4.0"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
tag = false
Expand Down

0 comments on commit 78d644e

Please sign in to comment.