Name is not required.

This commit is contained in:
Víðir Valberg Guðmundsson 2016-05-31 01:02:47 +02:00
parent aa3a3c0428
commit 3c52b4080e
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-30 23:01
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('shop', '0021_ticket_email'),
]
operations = [
migrations.AlterField(
model_name='ticket',
name='name',
field=models.CharField(blank=True, help_text=b'Name of the person this ticket belongs to. This can be different from the buying user.', max_length=100, null=True),
),
migrations.AlterField(
model_name='ticket',
name='order',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tickets', to='shop.Order'),
),
migrations.AlterField(
model_name='ticket',
name='product',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tickets', to='shop.Product'),
),
]

View file

@ -298,6 +298,8 @@ class Ticket(CreatedUpdatedModel, UUIDModel):
'Name of the person this ticket belongs to. '
'This can be different from the buying user.'
),
null=True,
blank=True,
)
email = models.EmailField(