Commit 278d01741310ee7e2e0719bd9b228f61cbb1addd
Exists in
master
and in
1 other branch
Merge branch 'master' of https://gitlab.irap.omp.eu/epallier/pyros.git
Showing
3 changed files
with
9 additions
and
4 deletions
Show diff stats
... | ... | @@ -0,0 +1 @@ |
1 | +/migrations/ | ... | ... |
src/pyrosapp/admin.py
... | ... | @@ -2,6 +2,9 @@ from django import forms |
2 | 2 | from django.contrib import admin |
3 | 3 | from django.contrib.auth.models import User |
4 | 4 | |
5 | +# EP | |
6 | +from django.conf import settings | |
7 | + | |
5 | 8 | #TODO?: |
6 | 9 | #from pyrosapp import models as pyrosapp_models |
7 | 10 | from pyrosapp.models import * |
... | ... | @@ -36,11 +39,11 @@ class ReadOnlyModelAdmin(admin.ModelAdmin): |
36 | 39 | # EP added |
37 | 40 | |
38 | 41 | # Edit mode |
39 | -DEBUG = False | |
42 | +#DEBUG = False | |
40 | 43 | # View only mode |
41 | 44 | #DEBUG = True |
42 | 45 | |
43 | -if DEBUG: | |
46 | +if settings.DEBUG: | |
44 | 47 | class PyrosModelAdmin(ReadOnlyModelAdmin): |
45 | 48 | pass |
46 | 49 | else: | ... | ... |
src/pyrosapp/migrations/0001_initial.py
1 | 1 | # -*- coding: utf-8 -*- |
2 | -# Generated by Django 1.9.4 on 2016-03-24 15:00 | |
2 | +# Generated by Django 1.9.4 on 2016-03-24 17:01 | |
3 | 3 | from __future__ import unicode_literals |
4 | 4 | |
5 | 5 | from django.conf import settings |
... | ... | @@ -197,6 +197,7 @@ class Migration(migrations.Migration): |
197 | 197 | fields=[ |
198 | 198 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
199 | 199 | ('desc', models.TextField(blank=True, null=True)), |
200 | + ('desce', models.TextField(blank=True, null=True)), | |
200 | 201 | ('created', models.DateTimeField(blank=True, null=True)), |
201 | 202 | ('updated', models.DateTimeField(blank=True, null=True)), |
202 | 203 | ('url', models.CharField(blank=True, max_length=45, null=True)), |
... | ... | @@ -467,7 +468,7 @@ class Migration(migrations.Migration): |
467 | 468 | migrations.AddField( |
468 | 469 | model_name='schedulehistory', |
469 | 470 | name='sequences', |
470 | - field=models.ManyToManyField(related_name='schedulehistorys', to='pyrosapp.Sequence'), | |
471 | + field=models.ManyToManyField(related_name='schedulehistories', to='pyrosapp.Sequence'), | |
471 | 472 | ), |
472 | 473 | migrations.AddField( |
473 | 474 | model_name='request', | ... | ... |