Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI 41 Project
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
Patricia Isabella Nava
CSCI 41 Project
Commits
09968deb
Commit
09968deb
authored
Dec 01, 2022
by
Patricia Isabella Nava
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.discs.ateneo.edu/navapatriciaisabella/csci-41-project
parents
62511dca
dddf37b5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
models.py
MagisAir/booking/models.py
+1
-1
db.sqlite3
MagisAir/db.sqlite3
+0
-0
No files found.
MagisAir/booking/models.py
View file @
09968deb
...
@@ -135,7 +135,7 @@ class Flight(models.Model):
...
@@ -135,7 +135,7 @@ class Flight(models.Model):
Destination_Airport
=
models
.
ForeignKey
(
City
,
on_delete
=
models
.
CASCADE
,
related_name
=
'destination'
)
Destination_Airport
=
models
.
ForeignKey
(
City
,
on_delete
=
models
.
CASCADE
,
related_name
=
'destination'
)
def
__str__
(
self
):
def
__str__
(
self
):
return
' ('
+
self
.
Flight_Code
+
' '
+
self
.
Origin_Airport
.
City_Name
+
' to '
+
self
.
Destination_Airport
.
City_Name
return
self
.
Flight_Code
+
' ('
+
self
.
Origin_Airport
.
City_Name
+
' to '
+
self
.
Destination_Airport
.
City_Name
+
')'
class
Schedule
(
models
.
Model
):
class
Schedule
(
models
.
Model
):
Sched_Code
=
models
.
AutoField
(
primary_key
=
True
,
editable
=
False
,
unique
=
True
)
Sched_Code
=
models
.
AutoField
(
primary_key
=
True
,
editable
=
False
,
unique
=
True
)
...
...
MagisAir/db.sqlite3
View file @
09968deb
No preview for this file type
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