Skip to content

Commit

Permalink
checkout/preview formnovalidate and add missing migration for basket
Browse files Browse the repository at this point in the history
  • Loading branch information
dbca-asi committed Jan 11, 2017
1 parent 2729e13 commit 15facb6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions ledger/basket/migrations/0011_auto_20170111_0853.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-11 00:53
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('basket', '0010_auto_20170106_1600'),
]

operations = [
migrations.AlterField(
model_name='line',
name='product',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='basket_lines', to='catalogue.Product', verbose_name=b'Product'),
),
]
2 changes: 1 addition & 1 deletion ledger/templates/checkout/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h2>{% trans 'Totals' %}</h2>
<div class="form-group clearfix">
<div class="row">
<div class="col-sm-3 col-sm-offset-9">
<button id='place-order' type="submit" class="btn btn-primary btn-lg btn-block" data-loading-text="{% trans 'Submitting...' %}">{% trans "Pay" %}</button>
<button id="place-order" formnovalidate type="submit" class="btn btn-primary btn-lg btn-block" data-loading-text="{% trans 'Submitting...' %}">{% trans "Pay" %}</button>
</div>
</div>
</div>
Expand Down

0 comments on commit 15facb6

Please sign in to comment.