space max

This commit is contained in:
vabene1111
2021-03-24 00:06:34 +01:00
parent 81a8734fac
commit 25717f6a79
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.1.7 on 2021-03-23 21:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cookbook', '0116_auto_20210319_0012'),
]
operations = [
migrations.AddField(
model_name='space',
name='max_recipes',
field=models.IntegerField(default=0),
),
]

View File

@ -61,6 +61,7 @@ class Space(models.Model):
name = models.CharField(max_length=128, default='Default')
created_by = models.ForeignKey(User, on_delete=models.PROTECT, null=True)
message = models.CharField(max_length=512, default='', blank=True)
max_recipes = models.IntegerField(default=0)
def __str__(self):
return self.name