mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00

Add a structure that lets you define a template URL per layer to be shown per comparison recipe. For example, you could use this to define a URL template to link to the upstream summary page for the package (e.g. Fedora's page for the acl package is at https://apps.fedoraproject.org/packages/acl, so you would use https://apps.fedoraproject.org/packages/%pn% as the template and then this would be shown for every package). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
27 lines
1.0 KiB
Python
27 lines
1.0 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.12 on 2018-05-15 04:10
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('layerindex', '0017_classicrecipe_needs_attention'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='LayerRecipeExtraURL',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(help_text='Name to display for link', max_length=50)),
|
|
('url', models.CharField(help_text='Template for URL to link to (macros: %pn% %pv% %branch% %actual_branch%)', max_length=255, verbose_name='URL')),
|
|
('layer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='layerindex.LayerItem')),
|
|
],
|
|
options={'verbose_name': 'Layer Recipe Extra URL'},
|
|
),
|
|
]
|