Skip to content

Commit

Permalink
Merge pull request #45 from praekelt/feature/remove-post-to
Browse files Browse the repository at this point in the history
Remove post_to field o formfactory
  • Loading branch information
phala committed Feb 3, 2017
2 parents 7d47c3c + 8f27491 commit b4a30d3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion formfactory/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Meta(object):
model = models.Form
fields = [
"title", "slug", "success_message", "failure_message",
"post_to", "redirect_to", "submit_button_text"
"redirect_to", "submit_button_text"
]


Expand Down
19 changes: 19 additions & 0 deletions formfactory/migrations/0004_remove_form_post_to.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.12 on 2017-02-02 20:14
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('formfactory', '0003_formfieldgroup_show_title'),
]

operations = [
migrations.RemoveField(
model_name='form',
name='post_to',
),
]
5 changes: 0 additions & 5 deletions formfactory/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,6 @@ class Form(BaseFormModel):
when the form processed.
"""
actions = models.ManyToManyField(Action, through=FormActionThrough)
post_to = models.CharField(
max_length=256, blank=True, null=True,
help_text="URL to which this form will be posted to. Leave blank to \
post back to original view."
)
submit_button_text = models.CharField(
max_length=64, default="Submit",
help_text="The text you would like on the form submit button."
Expand Down

0 comments on commit b4a30d3

Please sign in to comment.