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
f0bed937
Commit
f0bed937
authored
Apr 18, 2017
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless null=True on many2many fields
parent
2d2d58c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
nonstop/migrations/0004_auto_20170418_1525.py
nonstop/migrations/0004_auto_20170418_1525.py
+19
-0
nonstop/models.py
nonstop/models.py
+1
-1
No files found.
nonstop/migrations/0004_auto_20170418_1525.py
0 → 100644
View file @
f0bed937
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'nonstop'
,
'0003_track_nonstop_zones'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'track'
,
name
=
'nonstop_zones'
,
field
=
models
.
ManyToManyField
(
to
=
'emissions.Nonstop'
,
blank
=
True
),
),
]
nonstop/models.py
View file @
f0bed937
...
@@ -38,7 +38,7 @@ class Track(models.Model):
...
@@ -38,7 +38,7 @@ class Track(models.Model):
choices
=
LANGUAGES
,
blank
=
True
)
choices
=
LANGUAGES
,
blank
=
True
)
sabam
=
models
.
BooleanField
(
'SABAM'
,
default
=
True
)
sabam
=
models
.
BooleanField
(
'SABAM'
,
default
=
True
)
cfwb
=
models
.
BooleanField
(
'CFWB'
,
default
=
False
)
cfwb
=
models
.
BooleanField
(
'CFWB'
,
default
=
False
)
nonstop_zones
=
models
.
ManyToManyField
(
'emissions.Nonstop'
,
null
=
True
,
blank
=
True
)
nonstop_zones
=
models
.
ManyToManyField
(
'emissions.Nonstop'
,
blank
=
True
)
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'track-view'
,
kwargs
=
{
'pk'
:
self
.
id
})
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