Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
Kape
Commits
52100f2b
Commit
52100f2b
authored
Dec 08, 2019
by
Kevin Albert Simanjuntak
Browse files
fix conflict
parent
3a42dde1
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/migrations/0002_auto_20191208_0023.py
0 → 100644
View file @
52100f2b
# Generated by Django 2.2.8 on 2019-12-07 17:23
import
django.core.validators
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'core'
,
'0001_initial'
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
'feedback'
,
name
=
'companyId'
,
),
migrations
.
AddField
(
model_name
=
'feedback'
,
name
=
'vacancyId'
,
field
=
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'core.Vacancy'
),
),
migrations
.
AlterField
(
model_name
=
'student'
,
name
=
'github_url'
,
field
=
models
.
URLField
(
blank
=
True
,
null
=
True
,
validators
=
[
django
.
core
.
validators
.
RegexValidator
(
'github.com'
)]),
),
migrations
.
AlterField
(
model_name
=
'student'
,
name
=
'gitlab_url'
,
field
=
models
.
URLField
(
blank
=
True
,
null
=
True
,
validators
=
[
django
.
core
.
validators
.
RegexValidator
(
'gitlab.com'
)]),
),
]
core/models/feedbacks.py
View file @
52100f2b
from
django.db
import
models
from
core.models.accounts
import
Student
,
Company
from
core.models.accounts
import
Student
from
core.models.vacancies
import
Vacancy
class
Feedback
(
models
.
Model
):
...
...
@@ -7,7 +8,7 @@ class Feedback(models.Model):
title
=
models
.
CharField
(
max_length
=
100
,
blank
=
True
,
default
=
''
)
content
=
models
.
TextField
()
studentId
=
models
.
ForeignKey
(
Student
,
on_delete
=
models
.
CASCADE
,
null
=
True
)
comp
anyId
=
models
.
ForeignKey
(
Comp
any
,
on_delete
=
models
.
CASCADE
,
null
=
True
)
vac
an
c
yId
=
models
.
ForeignKey
(
Vac
an
c
y
,
on_delete
=
models
.
CASCADE
,
null
=
True
)
class
Meta
:
ordering
=
[
'created'
]
Write
Preview
Supports
Markdown
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