Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tdt4242-base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Åsmund Haugse
tdt4242-base
Merge requests
!17
Feat/meal module
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feat/meal module
feat/meal_module
into
master
Overview
0
Commits
13
Pipelines
6
Changes
23
Merged
Haakon Gunleiksrud
requested to merge
feat/meal_module
into
master
3 years ago
Overview
0
Commits
13
Pipelines
6
Changes
23
Expand
Adds a new module for meal registration
Edited
3 years ago
by
Haakon Gunleiksrud
0
0
Merge request reports
Compare
master
version 5
11a50f6f
3 years ago
version 4
0b08cab8
3 years ago
version 3
95f8b973
3 years ago
version 2
c739f4da
3 years ago
version 1
f51b973a
3 years ago
master (base)
and
latest version
latest version
fd4dd127
13 commits,
3 years ago
version 5
11a50f6f
11 commits,
3 years ago
version 4
0b08cab8
10 commits,
3 years ago
version 3
95f8b973
9 commits,
3 years ago
version 2
c739f4da
3 commits,
3 years ago
version 1
f51b973a
2 commits,
3 years ago
23 files
+
1005
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
23
Search (e.g. *.vue) (Ctrl+P)
backend/secfit/meals/migrations/0001_initial.py
0 → 100644
+
42
−
0
Options
# Generated by Django 3.1 on 2021-10-20 15:17
from
django.conf
import
settings
from
django.db
import
migrations
,
models
import
django.db.models.deletion
import
meals.models
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
migrations
.
swappable_dependency
(
settings
.
AUTH_USER_MODEL
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'
Meal
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
name
'
,
models
.
CharField
(
max_length
=
100
)),
(
'
date
'
,
models
.
DateTimeField
()),
(
'
notes
'
,
models
.
TextField
()),
(
'
calories
'
,
models
.
IntegerField
()),
(
'
is_veg
'
,
models
.
BooleanField
(
default
=
False
)),
(
'
owner
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
meals
'
,
to
=
settings
.
AUTH_USER_MODEL
)),
],
options
=
{
'
ordering
'
:
[
'
-date
'
],
},
),
migrations
.
CreateModel
(
name
=
'
MealFile
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
file
'
,
models
.
FileField
(
upload_to
=
meals
.
models
.
meal_directory_path
)),
(
'
meal
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
files
'
,
to
=
'
meals.meal
'
)),
(
'
owner
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
meal_files
'
,
to
=
settings
.
AUTH_USER_MODEL
)),
],
),
]
Loading