mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Added 'URL' field to company
This commit is contained in:
parent
b114001678
commit
1df1bf2c07
20
InvenTree/company/migrations/0004_company_url.py
Normal file
20
InvenTree/company/migrations/0004_company_url.py
Normal 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'),
|
||||||
|
),
|
||||||
|
]
|
@ -42,6 +42,8 @@ class Company(models.Model):
|
|||||||
contact = models.CharField(max_length=100,
|
contact = models.CharField(max_length=100,
|
||||||
blank=True)
|
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)
|
image = models.ImageField(upload_to=rename_company_image, max_length=255, null=True, blank=True)
|
||||||
|
|
||||||
notes = models.TextField(blank=True)
|
notes = models.TextField(blank=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user