Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
Kape
Commits
70109e9d
Commit
70109e9d
authored
Nov 14, 2019
by
Muhammad Fauzan Fikri
Browse files
fix model and update migrations
parent
c0838914
Pipeline
#24923
passed with stages
in 5 minutes and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
core/migrations/0001_initial.py
View file @
70109e9d
# -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-11-14 0
7:47
# Generated by Django 1.11.17 on 2019-11-14 0
8:12
from
__future__
import
unicode_literals
import
core.lib.validators
...
...
@@ -75,13 +75,13 @@ class Migration(migrations.Migration):
(
'linkedin_url'
,
models
.
URLField
(
blank
=
True
,
null
=
True
)),
(
'website_url'
,
models
.
URLField
(
blank
=
True
,
null
=
True
)),
(
'region'
,
models
.
CharField
(
blank
=
True
,
max_length
=
30
,
null
=
True
)),
(
'alamat'
,
models
.
CharField
(
blank
=
True
,
max_length
=
50
,
null
=
True
)),
(
'recommendations'
,
models
.
CharField
(
blank
=
True
,
max_length
=
500
,
null
=
True
)),
(
'ui_ux_portofolio'
,
models
.
FileField
(
blank
=
True
,
null
=
True
,
upload_to
=
core
.
models
.
accounts
.
get_student_ui_ux_portofolio_file_path
,
validators
=
[
core
.
lib
.
validators
.
validate_document_file_extension
])),
(
'latest_work'
,
models
.
CharField
(
blank
=
True
,
max_length
=
100
,
null
=
True
)),
(
'latest_work_desc'
,
models
.
TextField
(
blank
=
True
,
null
=
True
)),
(
'intro'
,
models
.
CharField
(
blank
=
True
,
max_length
=
50
,
null
=
True
)),
(
'volunteer'
,
models
.
CharField
(
blank
=
True
,
max_length
=
100
,
null
=
True
)),
(
'alamat'
,
models
.
URLField
(
blank
=
True
,
null
=
True
)),
],
options
=
{
'ordering'
:
[
'-updated'
],
...
...
core/models/accounts.py
View file @
70109e9d
...
...
@@ -78,13 +78,13 @@ class Student(models.Model):
linkedin_url
=
models
.
URLField
(
max_length
=
200
,
blank
=
True
,
null
=
True
)
website_url
=
models
.
URLField
(
max_length
=
200
,
blank
=
True
,
null
=
True
)
region
=
models
.
CharField
(
max_length
=
30
,
blank
=
True
,
null
=
True
)
alamat
=
models
.
CharField
(
max_length
=
50
,
blank
=
True
,
null
=
True
)
recommendations
=
models
.
CharField
(
max_length
=
500
,
blank
=
True
,
null
=
True
)
ui_ux_portofolio
=
models
.
FileField
(
upload_to
=
get_student_ui_ux_portofolio_file_path
,
null
=
True
,
blank
=
True
,
validators
=
[
validate_document_file_extension
])
latest_work
=
models
.
CharField
(
max_length
=
100
,
blank
=
True
,
null
=
True
)
latest_work_desc
=
models
.
TextField
(
blank
=
True
,
null
=
True
)
intro
=
models
.
CharField
(
max_length
=
50
,
blank
=
True
,
null
=
True
)
volunteer
=
models
.
CharField
(
max_length
=
100
,
blank
=
True
,
null
=
True
)
alamat
=
models
.
URLField
(
max_length
=
200
,
blank
=
True
,
null
=
True
)
@
property
def
name
(
self
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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