Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_father when can i be on my own i have the hello world to see
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
father when can i be on my own i have the hello world to see
widget_father when can i be on my own i have the hello world to see
Commits
f620ddf0
Commit
f620ddf0
authored
May 23, 2022
by
Charles Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed imports of announcements
parent
18a248ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
0005_alter_announcement_announcement_pic_and_more.py
...ions/0005_alter_announcement_announcement_pic_and_more.py
+23
-0
views.py
announcement_board/views.py
+0
-2
No files found.
announcement_board/migrations/0005_alter_announcement_announcement_pic_and_more.py
0 → 100644
View file @
f620ddf0
# Generated by Django 4.0.4 on 2022-05-23 16:08
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'announcement_board'
,
'0004_announcement_announcement_pic'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'announcement'
,
name
=
'announcement_pic'
,
field
=
models
.
FileField
(
blank
=
True
,
null
=
True
,
upload_to
=
'media/announcement_board'
),
),
migrations
.
AlterField
(
model_name
=
'announcement'
,
name
=
'pub_date'
,
field
=
models
.
DateField
(
auto_now_add
=
True
),
),
]
announcement_board/views.py
View file @
f620ddf0
from
types
import
NoneType
from
django.shortcuts
import
render
from
django.shortcuts
import
render
from
django.views
import
View
from
django.views
import
View
from
django.views.generic.detail
import
DetailView
from
django.views.generic.detail
import
DetailView
from
django.views.generic.edit
import
CreateView
from
django.views.generic.edit
import
CreateView
from
.models
import
Announcement
,
Reaction
from
.models
import
Announcement
,
Reaction
class
AnnouncementView
(
View
):
class
AnnouncementView
(
View
):
def
get
(
self
,
request
):
def
get
(
self
,
request
):
objects_set
=
{
objects_set
=
{
...
...
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