Skip to content
Snippets Groups Projects
Commit a387bcb6 authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

Blank=True the description and compatible workers fields

parent ae07953d
No related branches found
No related tags found
1 merge request!2026Blank=True the description and compatible workers fields
......@@ -51,9 +51,9 @@ class Migration(migrations.Migration):
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('name', models.CharField(max_length=100, unique=True)),
('description', models.TextField(default='')),
('description', models.TextField(default='', blank=True)),
('public', models.BooleanField(default=False)),
('compatible_workers', models.ManyToManyField(related_name='models', to='process.worker')),
('compatible_workers', models.ManyToManyField(related_name='models', to='process.worker', blank=True)),
],
options={
'abstract': False,
......
......@@ -26,12 +26,12 @@ class Model(IndexableModel):
# Name of the model, unique
name = models.CharField(max_length=100, unique=True)
description = models.TextField(default="")
description = models.TextField(default="", blank=True)
public = models.BooleanField(default=False)
# Link to the workers that are able to use this model
compatible_workers = models.ManyToManyField('process.Worker', related_name='models')
compatible_workers = models.ManyToManyField('process.Worker', related_name='models', blank=True)
# Memberships to handle access rights on models
memberships = GenericRelation('users.Right', 'content_id')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment