Commit fac31d89 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

Project.cmake_name

parent 7c0272f4
Pipeline #1940 passed with stages
in 45 seconds
# Generated by Django 2.1.3 on 2018-11-27 18:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rainboard', '0023_branch_repo'),
]
operations = [
migrations.AddField(
model_name='project',
name='cmake_name',
field=models.CharField(blank=True, max_length=200, null=True),
),
]
......@@ -36,7 +36,7 @@ RPKG_LICENSES = {
'modified-bsd': 'BSD-3-Clause'
}
RPKG_FIELDS = ['PKGBASE', 'PKGVERSION', 'MASTER_SITES', 'MASTER_REPOSITORY', 'MAINTAINER', 'COMMENT', 'HOMEPAGE']
CMAKE_FIELDS = {'NAME': 'name', 'DESCRIPTION': 'description', 'URL': 'homepage', 'VERSION': 'version'}
CMAKE_FIELDS = {'NAME': 'cmake_name', 'DESCRIPTION': 'description', 'URL': 'homepage', 'VERSION': 'version'}
TRAVIS_STATE = {'created': None, 'passed': True, 'started': None, 'failed': False, 'errored': False, 'canceled': False}
GITLAB_STATUS = {'failed': False, 'success': True, 'pending': None, 'skipped': None, 'canceled': None, 'running': None}
......@@ -180,6 +180,7 @@ class Project(Links, NamedModel, TimeStampedModel):
docs = models.BooleanField(default=True)
debug = models.BooleanField(default=False)
from_gepetto = models.BooleanField(default=True)
cmake_name = models.CharField(max_length=200, blank=True, null=True)
def save(self, *args, **kwargs):
self.name = valid_name(self.name)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment