Name is not required.
This commit is contained in:
parent
aa3a3c0428
commit
3c52b4080e
31
shop/migrations/0022_auto_20160530_2301.py
Normal file
31
shop/migrations/0022_auto_20160530_2301.py
Normal 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'),
|
||||
),
|
||||
]
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue