Skip to content

Commit

Permalink
Remove south and update version to 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoconnor committed May 11, 2019
1 parent e3aaeed commit fcdbb5d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 122 deletions.
5 changes: 5 additions & 0 deletions HISTORY.rst
Expand Up @@ -3,6 +3,11 @@
History
-------

0.1.3 (2019-5-11)
++++++++++++++++++

* Update for Django 1.11

0.1.2 (2016-5-6)
++++++++++++++++++

Expand Down
47 changes: 3 additions & 44 deletions README.rst
@@ -1,7 +1,7 @@
Django Email Templates
======================

© 2016 Michael O’Connor, http://www.mcoconnor.net
© 2019 Michael O’Connor, http://www.mcoconnor.net
https://github.com/mcoconnor/django-emailmessagetemplates

In many cases, users will want to be able to edit the emails sent by
Expand All @@ -12,15 +12,13 @@ edit email content with an easy-to-integrate developer API.
Requirements
------------

Django Email Templates supports versions 1.4-1.9 of Django under Python
2.6 and 2.7.
Django Email Templates supports versions 1.9-1.11 of Django under Python 2.7.

| |Build Status| |Coverage Status|
- `django-appconf`_ is the only external dependency.
- `html2text`_ is required to use the text autogeneration
functionality.
- `South`_ is supported but not required (for Django<1.7).

Installation
------------
Expand Down Expand Up @@ -139,49 +137,10 @@ Default: False
If true, templates can produce HTML-formatted messages and provide
plain-text alternative content. Enabling this option will display
additional fields in the Django admin form and will enable HTML
generation for templates that have a ``type`` of ``text/html``.

Migrations
----------

Django-emailmessagetemplates provides database migrations using both
South and Django’s built-in migration system. You can apply the
migrations as follows:

**If you’re using Django >= 1.7 and the built-in migration system:**

::

python manage.py migrate emailmessagetemplates

**If you’re using Django < 1.7 and South >= 1.0:**

::

python manage.py syncdb
python manage.py migrate emailmessagetemplates

**If you’re using Django < 1.7 and South < 1.0:**

Include ``emailmessagetemplates`` in your ``SOUTH_MIGRATION_MODULES``
setting, like

::

SOUTH_MIGRATION_MODULES = {
'emailmessagetemplates': 'emailmessagetemplates.south_migrations',
}

The run the standard migration commands:

::

python manage.py syncdb
python manage.py migrate emailmessagetemplates
generation for templates that have a ``type`` of ``text/html``.

.. _django-appconf: https://pypi.python.org/pypi/django-appconf/0.6
.. _html2text: https://pypi.python.org/pypi/html2text
.. _South: http://south.aeracode.org/

.. |Build Status| image:: https://travis-ci.org/mcoconnor/django-emailmessagetemplates.svg?branch=master
:target: https://travis-ci.org/mcoconnor/django-emailmessagetemplates
Expand Down
2 changes: 1 addition & 1 deletion emailmessagetemplates/__init__.py
Expand Up @@ -2,4 +2,4 @@
Tools for sending templated emails
"""

__version__ = '0.1.2'
__version__ = '0.1.3'
3 changes: 0 additions & 3 deletions emailmessagetemplates/fields.py
Expand Up @@ -3,9 +3,6 @@
from django.core.exceptions import ValidationError
from django.template import Context, Template, TemplateSyntaxError

if 'south' in settings.INSTALLED_APPS:
from south.modelsinspector import add_introspection_rules
add_introspection_rules([], ["^emailmessagetemplates\.fields\.SeparatedValuesField"])

class SeparatedValuesField(models.TextField):
"""
Expand Down
73 changes: 0 additions & 73 deletions emailmessagetemplates/south_migrations/0001_initial.py

This file was deleted.

Empty file.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -10,7 +10,7 @@
except ImportError:
from distutils.core import setup

version = "0.1.2"
version = "0.1.3"

if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
Expand Down

0 comments on commit fcdbb5d

Please sign in to comment.