Skip to content

Commit 0fc5cc7

Browse files
committed
:default enable
1 parent e537e5b commit 0fc5cc7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ env
1616
.idea
1717
migrations
1818
FoodyConfig/StaticConfig/SMS_IR_Config.py
19+
Media/Foods/*
20+
|Media/Foods/default.png
1921
# C extensions
2022
*.so
2123
flask_session

FoodyAdmin/Apps/ManageFoods/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def add_new_food():
4343
"add_new_food": "item-active"
4444
}
4545
form = ManageFoodsForms.AddFoodForm()
46+
form.Active.data = "active"
4647
return render_template(f"{TEMPLATE_FOLDER}/add_new_food.html", ctx=ctx, form=form)
4748

4849

0 commit comments

Comments
 (0)