Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMASCH
scheduling-system
Merge requests
!106
Resolve "Subjects without visit list"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Subjects without visit list"
176-subjects-without-visit-list
into
master
Overview
0
Commits
5
Pipelines
2
Changes
11
Merged
Piotr Gawron
requested to merge
176-subjects-without-visit-list
into
master
7 years ago
Overview
0
Commits
5
Pipelines
2
Changes
11
Expand
Closes
#176 (closed)
Edited
7 years ago
by
Piotr Gawron
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
c049563a
5 commits,
7 years ago
11 files
+
242
−
17
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
smash/web/api_views/flying_team.py
0 → 100644
+
15
−
0
Options
from
django.contrib.auth.decorators
import
login_required
from
django.http
import
JsonResponse
from
web.models
import
FlyingTeam
@login_required
def
flying_teams
(
request
):
all_flying_teams
=
FlyingTeam
.
objects
.
all
()
data
=
[]
for
flying_team
in
all_flying_teams
:
data
.
append
({
"
id
"
:
flying_team
.
id
,
"
name
"
:
flying_team
.
place
})
return
JsonResponse
({
"
flying_teams
"
:
data
})
Loading