Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_robo_mommy
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Raul Jarod Conanan
midterm_robo_mommy
Commits
330419f8
Commit
330419f8
authored
Mar 05, 2023
by
Al Vincent E. Bomediano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add admin alvincent in app Calendar and Add data
parent
02dce727
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
6 deletions
+19
-6
db.sqlite3
widget_robo_mommy/db.sqlite3
+0
-0
admin.cpython-311.pyc
...o_mommy/widget_Calendar/__pycache__/admin.cpython-311.pyc
+0
-0
models.cpython-311.pyc
..._mommy/widget_Calendar/__pycache__/models.cpython-311.pyc
+0
-0
admin.py
widget_robo_mommy/widget_Calendar/admin.py
+12
-1
models.py
widget_robo_mommy/widget_Calendar/models.py
+7
-5
wsgi.cpython-311.pyc
..._mommy/widget_robo_mommy/__pycache__/wsgi.cpython-311.pyc
+0
-0
No files found.
widget_robo_mommy/db.sqlite3
View file @
330419f8
No preview for this file type
widget_robo_mommy/widget_Calendar/__pycache__/admin.cpython-311.pyc
View file @
330419f8
No preview for this file type
widget_robo_mommy/widget_Calendar/__pycache__/models.cpython-311.pyc
View file @
330419f8
No preview for this file type
widget_robo_mommy/widget_Calendar/admin.py
View file @
330419f8
from
django.contrib
import
admin
from
.models
import
Location
,
Event
# Register your models here.
class
LocationAdmin
(
admin
.
ModelAdmin
):
model
=
Location
class
EventAdmin
(
admin
.
ModelAdmin
):
model
=
Event
admin
.
site
.
register
(
Location
,
LocationAdmin
)
admin
.
site
.
register
(
Event
,
EventAdmin
)
widget_robo_mommy/widget_Calendar/models.py
View file @
330419f8
from
django.db
import
models
class
Location
(
models
.
Model
):
MODE_TYPES
=
(
MODE_TYPES
=
(
(
'onsite'
,
'Onsite'
),
(
'online'
,
'Online'
),
(
'hybrid'
,
'Hybrid'
),
)
)
class
Location
(
models
.
Model
):
mode
=
models
.
CharField
(
max_length
=
6
,
choices
=
MODE_TYPES
)
venue
=
models
.
CharField
(
max_length
=
100
)
...
...
widget_robo_mommy/widget_robo_mommy/__pycache__/wsgi.cpython-311.pyc
0 → 100644
View file @
330419f8
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