Skip to content

Commit

Permalink
Merge pull request #1523 from samul-1/make-plugindatum-user-blankable
Browse files Browse the repository at this point in the history
fix: add blank=True to plugindatum's user field
  • Loading branch information
pierotofy authored Jul 9, 2024
2 parents 2cc2bcb + 8a7a487 commit a0e1acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/plugin_datum.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class PluginDatum(models.Model):
key = models.CharField(max_length=255, help_text=_("Setting key"), db_index=True, verbose_name=_("Key"))
user = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, default=None, on_delete=models.CASCADE, help_text=_("The user this setting belongs to. If NULL, the setting is global."), verbose_name=_("User"))
user = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, blank=True, default=None, on_delete=models.CASCADE, help_text=_("The user this setting belongs to. If NULL, the setting is global."), verbose_name=_("User"))
int_value = models.IntegerField(blank=True, null=True, default=None, verbose_name=_("Integer value"))
float_value = models.FloatField(blank=True, null=True, default=None, verbose_name=_("Float value"))
bool_value = models.NullBooleanField(blank=True, null=True, default=None, verbose_name=_("Bool value"))
Expand Down

0 comments on commit a0e1acd

Please sign in to comment.