Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_nicsbabes
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
Nics De Vega
midterm_nicsbabes
Commits
272f59af
Commit
272f59af
authored
May 13, 2023
by
Sharmaine Chua
Browse files
Options
Browse Files
Download
Plain Diff
fixed some merge conflicts
parents
fe5a031c
1366ddba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
40 deletions
+20
-40
0002_alter_announcement_pub_datetime.py
..._board/migrations/0002_alter_announcement_pub_datetime.py
+19
-0
views.py
widget_nicsbabes/dashboard/views.py
+1
-40
settings.cpython-39.pyc
...abes/widget_nicsbabes/__pycache__/settings.cpython-39.pyc
+0
-0
No files found.
widget_nicsbabes/announcement_board/migrations/0002_alter_announcement_pub_datetime.py
0 → 100644
View file @
272f59af
# Generated by Django 3.2 on 2023-05-13 12:54
from
django.db
import
migrations
,
models
import
django.utils.timezone
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'announcement_board'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'announcement'
,
name
=
'pub_datetime'
,
field
=
models
.
DateTimeField
(
default
=
django
.
utils
.
timezone
.
now
),
),
]
widget_nicsbabes/dashboard/views.py
View file @
272f59af
...
@@ -25,43 +25,4 @@ class WidgetUserCreateView(CreateView):
...
@@ -25,43 +25,4 @@ class WidgetUserCreateView(CreateView):
class
WidgetUserUpdateView
(
UpdateView
):
class
WidgetUserUpdateView
(
UpdateView
):
model
=
WidgetUser
model
=
WidgetUser
template_name
=
'dashboard/widgetuser-edit.html'
template_name
=
'dashboard/widgetuser-edit.html'
fields
=
'__all__'
fields
=
'__all__'
\ No newline at end of file
# from django.shortcuts import render
# from django.http import HttpResponse
# from .models import WidgetUser
# def index(request):
# return_string = '<body>'
# for user in WidgetUser.objects.all():
# user_string = '{}, {} {}'.format(
# user.last_name, user.first_name, user.middle_name
# )
# dept_string = '{}: {}'.format(
# user.department.dept_name, user.department.home_unit
# )
# return_string += user_string + " from the " + dept_string + "<br>"
# html_string = '<html>{}</html>'.format(return_string)
# return HttpResponse("Welcome to Widget! <br> <br>WIDGET USERS: <br>" + html_string)
\ No newline at end of file
widget_nicsbabes/widget_nicsbabes/__pycache__/settings.cpython-39.pyc
0 → 100644
View file @
272f59af
File added
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