Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
fix email host field
Browse files Browse the repository at this point in the history
  • Loading branch information
monty5811 committed Nov 7, 2017
1 parent 0d5b3b1 commit 3727548
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [v2.6.1]

### Fixed

- Prevent `http://` from being added to email host field

## [v2.6.0]

**Note** - this release moves the Twilio and email sending configuration into the database to make management and intial setup easier.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
2.6.0
2.6.1
2 changes: 1 addition & 1 deletion ansible/env_vars/base.yml
@@ -1,7 +1,7 @@
---

git_repo: https://github.com/monty5811/apostello.git
git_version: v2.6.0
git_version: v2.6.1

project_name: apostello
application_name: apostello
Expand Down
2 changes: 1 addition & 1 deletion scripts/ansible_install.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
# setup some constants
AP_VER=v2.6.0
AP_VER=v2.6.1
REPO_URL=https://github.com/monty5811/apostello.git
HOME_DIR=/home/apostello
CUSTOM_VARS_FILE=$HOME_DIR/custom_vars.yml
Expand Down
40 changes: 40 additions & 0 deletions site_config/migrations/0015_auto_20171107_1326.py
@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-07 13:26
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('site_config', '0014_auto_20171025_1053'),
]

operations = [
migrations.AlterField(
model_name='siteconfiguration',
name='email_from',
field=models.EmailField(blank=True, help_text='Email will be sent from this address.', max_length=254, null=True),
),
migrations.AlterField(
model_name='siteconfiguration',
name='email_host',
field=models.CharField(blank=True, help_text='Email host.', max_length=255, null=True),
),
migrations.AlterField(
model_name='siteconfiguration',
name='email_password',
field=models.CharField(blank=True, help_text='Email password.', max_length=255, null=True),
),
migrations.AlterField(
model_name='siteconfiguration',
name='email_port',
field=models.PositiveIntegerField(blank=True, help_text='Email host port.', null=True),
),
migrations.AlterField(
model_name='siteconfiguration',
name='email_username',
field=models.CharField(blank=True, help_text='Email user name.', max_length=255, null=True),
),
]
3 changes: 2 additions & 1 deletion site_config/models.py
Expand Up @@ -82,9 +82,10 @@ class SiteConfiguration(SingletonModel):
help_text='This message will be shown on the "not approved" page.',
)
# email sending settings
email_host = models.URLField(
email_host = models.CharField(
blank=True,
null=True,
max_length=255,
help_text='Email host.',
)
email_port = models.PositiveIntegerField(
Expand Down

0 comments on commit 3727548

Please sign in to comment.