partner name field
This commit is contained in:
parent
3f164459a7
commit
d9b88f7ef9
18
apps/partner/migrations/0004_partner_name.py
Normal file
18
apps/partner/migrations/0004_partner_name.py
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 2.2.7 on 2019-11-21 10:32
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('partner', '0003_auto_20191121_0929'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='partner',
|
||||||
|
name='name',
|
||||||
|
field=models.CharField(blank=True, max_length=255, null=True, verbose_name='name'),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
@ -16,6 +16,7 @@ class Partner(ProjectBaseMixin):
|
||||||
)
|
)
|
||||||
|
|
||||||
old_id = models.PositiveIntegerField(_('old id'), blank=True, null=True, default=None)
|
old_id = models.PositiveIntegerField(_('old id'), blank=True, null=True, default=None)
|
||||||
|
name = models.CharField(_('name'), max_length=255, blank=True, null=True)
|
||||||
url = models.URLField(verbose_name=_('Partner URL'))
|
url = models.URLField(verbose_name=_('Partner URL'))
|
||||||
image = models.URLField(verbose_name=_('Partner image URL'), null=True)
|
image = models.URLField(verbose_name=_('Partner image URL'), null=True)
|
||||||
establishment = models.ForeignKey(
|
establishment = models.ForeignKey(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user