Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_princessgabi
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
Ysabella Panghulan
midterm_princessgabi
Commits
b9e6a7ba
Commit
b9e6a7ba
authored
Mar 06, 2023
by
Julia Anishka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
created announcement model
parent
4005cf20
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
0 deletions
+27
-0
__init__.py
widget_princessgabi/announcementboard/__init__.py
+0
-0
admin.py
widget_princessgabi/announcementboard/admin.py
+3
-0
apps.py
widget_princessgabi/announcementboard/apps.py
+6
-0
__init__.py
widget_princessgabi/announcementboard/migrations/__init__.py
+0
-0
models.py
widget_princessgabi/announcementboard/models.py
+12
-0
tests.py
widget_princessgabi/announcementboard/tests.py
+3
-0
views.py
widget_princessgabi/announcementboard/views.py
+3
-0
No files found.
widget_princessgabi/announcementboard/__init__.py
0 → 100644
View file @
b9e6a7ba
widget_princessgabi/announcementboard/admin.py
0 → 100644
View file @
b9e6a7ba
from
django.contrib
import
admin
# Register your models here.
widget_princessgabi/announcementboard/apps.py
0 → 100644
View file @
b9e6a7ba
from
django.apps
import
AppConfig
class
AnnouncementboardConfig
(
AppConfig
):
default_auto_field
=
'django.db.models.BigAutoField'
name
=
'announcementboard'
widget_princessgabi/announcementboard/migrations/__init__.py
0 → 100644
View file @
b9e6a7ba
widget_princessgabi/announcementboard/models.py
0 → 100644
View file @
b9e6a7ba
from
django.db
import
models
from
dashboard.models
import
WidgetUser
class
Announcement
(
models
.
Model
):
title
=
models
.
CharField
(
max_length
=
50
)
body
=
models
.
TextField
(
max_length
=
700
,
null
=
True
,
blank
=
True
)
author
=
models
.
ForeignKey
(
WidgetUser
,
on_delete
=
models
.
CASCADE
)
pub_datetime
=
models
.
DateTimeField
(
'publication date and time'
)
def
__str__
(
self
):
return
self
.
title
widget_princessgabi/announcementboard/tests.py
0 → 100644
View file @
b9e6a7ba
from
django.test
import
TestCase
# Create your tests here.
widget_princessgabi/announcementboard/views.py
0 → 100644
View file @
b9e6a7ba
from
django.shortcuts
import
render
# Create your views here.
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