Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
barrierefreieapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Dennis Appel
barrierefreieapp
Commits
d3c8d3fe
Commit
d3c8d3fe
authored
Dec 17, 2018
by
Dennis Appel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong foreign key in model
parent
430fc0f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
0008_auto_20181217_1904.py
checklist/migrations/0008_auto_20181217_1904.py
+24
-0
models.py
checklist/models.py
+2
-2
No files found.
checklist/migrations/0008_auto_20181217_1904.py
0 → 100644
View file @
d3c8d3fe
# Generated by Django 2.1.3 on 2018-12-17 18:04
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'wiki'
,
'0001_initial'
),
(
'checklist'
,
'0007_checklistcategory_checklistcategory'
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
'checklistcategory'
,
name
=
'checklistCategory'
,
),
migrations
.
AddField
(
model_name
=
'checklistcategory'
,
name
=
'wikiEntry'
,
field
=
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
to
=
'wiki.WikiEntry'
),
),
]
checklist/models.py
View file @
d3c8d3fe
...
...
@@ -2,8 +2,8 @@ from django.db import models
class
CheckListCategory
(
models
.
Model
):
checklistCatego
ry
=
models
.
ForeignKey
(
'
checklist.CheckListCategory'
,
on_delete
=
models
.
SET_DEFAULT
,
default
=
1
)
wikiEnt
ry
=
models
.
ForeignKey
(
'
wiki.WikiEntry'
,
on_delete
=
models
.
SET_NULL
,
blank
=
True
,
null
=
True
)
categoryTitle
=
models
.
CharField
(
max_length
=
100
)
def
getEntries
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment