Added 'URL' field to company

This commit is contained in:
Oliver 2018-04-24 18:01:15 +10:00
parent b114001678
commit 1df1bf2c07
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-04-24 08:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('company', '0003_auto_20180423_1117'),
]
operations = [
migrations.AddField(
model_name='company',
name='URL',
field=models.URLField(blank=True, help_text='Link to external company information'),
),
]

View File

@ -42,6 +42,8 @@ class Company(models.Model):
contact = models.CharField(max_length=100,
blank=True)
URL = models.URLField(blank=True, help_text='Link to external company information')
image = models.ImageField(upload_to=rename_company_image, max_length=255, null=True, blank=True)
notes = models.TextField(blank=True)