Skip to content
Snippets Groups Projects
Commit ab87a008 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Fixed bug which prevented to create a Computing with no user from the Django admin.

parent f8ee8af1
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ class Container(models.Model):
class Computing(models.Model):
uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
user = models.ForeignKey(User, related_name='+', on_delete=models.CASCADE, null=True)
user = models.ForeignKey(User, related_name='+', on_delete=models.CASCADE, blank=True, null=True)
# If a compute resource has no user, it will be available to anyone. Can be created, edited and deleted only by admins.
name = models.CharField('Computing Name', max_length=255, blank=False, null=False)
......
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