Add migration
This commit is contained in:
parent
1eff11f7f3
commit
c9be406aad
|
@ -0,0 +1,34 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.18 on 2019-04-07 17:35
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('base', '0012_job'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='GithubConnector',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('title', models.CharField(max_length=50, verbose_name='Title')),
|
||||
('description', models.TextField(verbose_name='Description')),
|
||||
('slug', models.SlugField(unique=True, verbose_name='Identifier')),
|
||||
('api_url', models.URLField(help_text='Github API endpoint', max_length=400, verbose_name='Github API endpoint')),
|
||||
('github_user', models.URLField(max_length=400, verbose_name='Github user')),
|
||||
('github_repo', models.CharField(max_length=128, verbose_name='Github repo')),
|
||||
('github_token', models.CharField(max_length=128, verbose_name='Github token')),
|
||||
('users', models.ManyToManyField(blank=True, to='base.ApiUser')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Github connector',
|
||||
},
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue