Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widgets_FEKK
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kyla Martin
widgets_FEKK
Commits
cd6d2b07
Commit
cd6d2b07
authored
May 24, 2022
by
Emmanuel Linus T. Evangelista
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrated for final project
parent
7570ea80
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
1 deletion
+38
-1
0004_alter_announcement_announcement_image.py
.../migrations/0004_alter_announcement_announcement_image.py
+19
-0
0003_widgetuser_profile_image.py
...FEKK/Homepage/migrations/0003_widgetuser_profile_image.py
+18
-0
models.py
WidgetFEKK/Homepage/models.py
+1
-1
No files found.
WidgetFEKK/Announcements/migrations/0004_alter_announcement_announcement_image.py
0 → 100644
View file @
cd6d2b07
# Generated by Django 3.2.12 on 2022-05-24 13:10
import
Announcements.models
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'Announcements'
,
'0003_announcement_announcement_image'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'announcement'
,
name
=
'announcement_image'
,
field
=
models
.
ImageField
(
blank
=
True
,
null
=
True
,
upload_to
=
Announcements
.
models
.
image
),
),
]
WidgetFEKK/Homepage/migrations/0003_widgetuser_profile_image.py
0 → 100644
View file @
cd6d2b07
# Generated by Django 3.2.12 on 2022-05-24 13:10
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'Homepage'
,
'0002_auto_20220404_2049'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'widgetuser'
,
name
=
'profile_image'
,
field
=
models
.
ImageField
(
blank
=
True
,
null
=
True
,
upload_to
=
'widget-users/images/<django.db.models.fields.IntegerField>'
),
),
]
WidgetFEKK/Homepage/models.py
View file @
cd6d2b07
...
@@ -28,7 +28,7 @@ class WidgetUser(models.Model):
...
@@ -28,7 +28,7 @@ class WidgetUser(models.Model):
department
=
models
.
ForeignKey
(
Department
,
on_delete
=
models
.
CASCADE
)
department
=
models
.
ForeignKey
(
Department
,
on_delete
=
models
.
CASCADE
)
profile_image
=
models
.
ImageField
(
upload_to
=
f
"widget-users/images/{id_num}"
)
profile_image
=
models
.
ImageField
(
upload_to
=
f
"widget-users/images/{id_num}"
,
null
=
True
,
blank
=
True
)
def
__str__
(
self
):
def
__str__
(
self
):
return
f
"""{self.last_name}, {self.first_name} {self.middle_name}:
return
f
"""{self.last_name}, {self.first_name} {self.middle_name}:
...
...
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