Commit 4e7aa01d authored by sebastien letort's avatar sebastien letort

Better control on the notebook field.

parent 628bd94b
......@@ -5,7 +5,7 @@ from django.conf import settings
from django.contrib import auth
from django.contrib.auth.models import User, AnonymousUser
from django.core.validators import MinLengthValidator, MinValueValidator, \
RegexValidator, URLValidator
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
......@@ -231,7 +231,9 @@ class Webapp(TimeStampModel):
sandbox_state = models.IntegerField(null=True, choices=SANDBOX_STATE_CHOICES, default=IDLE)
sandbox_version = models.ForeignKey('WebappVersion', null=True, blank=True,
notebook_gitrepo = models.CharField(max_length=255, blank=True, null=True)
nb_url_validator = URLValidator(schemes=['https'], message="Only https url are allowed.")
notebook_gitrepo = models.URLField(max_length=255, blank=True, null=True,
memory_limit = models.BigIntegerField(null=True,
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