2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-21 14:20:54 +00:00

Create a custom URL field, which allows the user-specified validators

- Ref: https://stackoverflow.com/questions/41756572/django-urlfield-with-custom-scheme
- Apply this to the URL field in the Part model
This commit is contained in:
Oliver Walters
2019-09-14 00:04:08 +10:00
parent ee17d5d3c3
commit 4ac8353099
3 changed files with 48 additions and 1 deletions

View File

@ -0,0 +1,19 @@
# Generated by Django 2.2.5 on 2019-09-13 14:01
import InvenTree.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('part', '0022_auto_20190908_0918'),
]
operations = [
migrations.AlterField(
model_name='part',
name='URL',
field=InvenTree.fields.InvenTreeURLField(blank=True, help_text='Link to extenal URL'),
),
]