X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/30423c0a921a37cc2213e83309d5abe04399ba15..edf56edfdbea88b0e18c2e5aecbb6e62250ec3d7:/src/toolbar/models.py diff --git a/src/toolbar/models.py b/src/toolbar/models.py index fbaa396e..02567fab 100644 --- a/src/toolbar/models.py +++ b/src/toolbar/models.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -34,7 +32,7 @@ class Button(models.Model): # behaviour params = models.TextField(default='[]') # TODO: should be a JSON field - scriptlet = models.ForeignKey('Scriptlet', null=True, blank=True) + scriptlet = models.ForeignKey('Scriptlet', models.SET_NULL, null=True, blank=True) link = models.CharField(max_length=256, blank=True, default='') # ui related stuff