changed default
This commit is contained in:
parent
404516d677
commit
9a93458dc7
18
cookbook/migrations/0012_auto_20191115_1504.py
Normal file
18
cookbook/migrations/0012_auto_20191115_1504.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 2.2.7 on 2019-11-15 14:04
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cookbook', '0011_recipe_time'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='recipe',
|
||||
name='time',
|
||||
field=models.IntegerField(default=0),
|
||||
),
|
||||
]
|
@ -61,7 +61,7 @@ class Recipe(models.Model):
|
||||
file_path = models.CharField(max_length=512, default="")
|
||||
link = models.CharField(max_length=512, default="")
|
||||
keywords = models.ManyToManyField(Keyword, blank=True)
|
||||
time = models.IntegerField(blank=True)
|
||||
time = models.IntegerField(default=0)
|
||||
internal = models.BooleanField(default=False)
|
||||
created_by = models.ForeignKey(User, on_delete=models.PROTECT)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
Loading…
Reference in New Issue
Block a user