Skip to content

Commit

Permalink
update attachment's max_length (#38)
Browse files Browse the repository at this point in the history
Co-authored-by: Łukasz Sitko <lukasz.sitko@deployed.pl>
  • Loading branch information
citos88 and Łukasz Sitko authored Nov 4, 2022
1 parent 8a55156 commit 04bfe27
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Assumptions
Changelog
=========

1.1.16
------
* change max_length from 100 to 255 in email attachments - https://github.com/deployed/django-emailtemplates/pull/38

1.1.15
------
* ordering in email template & default subject from registry - https://github.com/deployed/django-emailtemplates/pull/37
Expand Down
31 changes: 31 additions & 0 deletions emailtemplates/migrations/0012_auto_20221103_1506.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Generated by Django 3.1.13 on 2022-11-03 14:06

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("emailtemplates", "0011_auto_20221026_0953"),
]

operations = [
migrations.AlterField(
model_name="emailattachment",
name="attachment_file",
field=models.FileField(
max_length=255,
upload_to="emails/attachments/",
verbose_name="Attachment file",
),
),
migrations.AlterField(
model_name="massemailattachment",
name="attachment_file",
field=models.FileField(
max_length=255,
upload_to="emails/attachments/",
verbose_name="Attachment file",
),
),
]
2 changes: 1 addition & 1 deletion emailtemplates/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class BaseEmailAttachment(models.Model):
)
name = models.CharField(_("name"), blank=True, max_length=50)
attachment_file = models.FileField(
_("Attachment file"), upload_to="emails/attachments/"
_("Attachment file"), upload_to="emails/attachments/", max_length=255
)
comment = models.TextField(
verbose_name=_("Comment"), blank=True, help_text=_("visible only in admin")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name='django-emailtemplates',
version='1.1.15',
version='1.1.16',
packages=find_packages(),
package_data={'emailtemplates': ['locale/*/LC_MESSAGES/*.po', 'locale/*/LC_MESSAGES/*.mo']},
include_package_data=True,
Expand Down

0 comments on commit 04bfe27

Please sign in to comment.