Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
django-panik-nonstop
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
radiopanik
django-panik-nonstop
Commits
55db83d6
Commit
55db83d6
authored
Apr 06, 2015
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attach nonstop zone data to nonstop tracks
parent
d2d1bd61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
nonstop/migrations/0003_track_nonstop_zones.py
nonstop/migrations/0003_track_nonstop_zones.py
+21
-0
nonstop/models.py
nonstop/models.py
+1
-0
No files found.
nonstop/migrations/0003_track_nonstop_zones.py
0 → 100644
View file @
55db83d6
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'emissions'
,
'0003_newsitem_event_date'
),
(
'nonstop'
,
'0002_somalogline_on_air'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'track'
,
name
=
'nonstop_zones'
,
field
=
models
.
ManyToManyField
(
to
=
'emissions.Nonstop'
,
null
=
True
,
blank
=
True
),
preserve_default
=
True
,
),
]
nonstop/models.py
View file @
55db83d6
...
...
@@ -38,6 +38,7 @@ class Track(models.Model):
choices
=
LANGUAGES
,
blank
=
True
)
sabam
=
models
.
BooleanField
(
'SABAM'
,
default
=
True
)
cfwb
=
models
.
BooleanField
(
'CFWB'
,
default
=
False
)
nonstop_zones
=
models
.
ManyToManyField
(
'emissions.Nonstop'
,
null
=
True
,
blank
=
True
)
def
get_absolute_url
(
self
):
return
reverse
(
'track-view'
,
kwargs
=
{
'pk'
:
self
.
id
})
...
...
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