Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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