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
Incidents
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
d116486a
Commit
d116486a
authored
Nov 01, 2014
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
models: add field for cfwb provenance
parent
653aca2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
+60
-0
nonstop/migrations/0003_auto__add_field_track_cfwb.py
nonstop/migrations/0003_auto__add_field_track_cfwb.py
+59
-0
nonstop/models.py
nonstop/models.py
+1
-0
No files found.
nonstop/migrations/0003_auto__add_field_track_cfwb.py
0 → 100644
View file @
d116486a
# -*- coding: utf-8 -*-
import
datetime
from
south.db
import
db
from
south.v2
import
SchemaMigration
from
django.db
import
models
class
Migration
(
SchemaMigration
):
def
forwards
(
self
,
orm
):
# Adding field 'Track.cfwb'
db
.
add_column
(
u
'nonstop_track'
,
'cfwb'
,
self
.
gf
(
'django.db.models.fields.BooleanField'
)(
default
=
False
),
keep_default
=
False
)
def
backwards
(
self
,
orm
):
# Deleting field 'Track.cfwb'
db
.
delete_column
(
u
'nonstop_track'
,
'cfwb'
)
models
=
{
u
'nonstop.album'
:
{
'Meta'
:
{
'object_name'
:
'Album'
},
u
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'name'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
})
},
u
'nonstop.artist'
:
{
'Meta'
:
{
'object_name'
:
'Artist'
},
u
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'name'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
})
},
u
'nonstop.nonstopfile'
:
{
'Meta'
:
{
'object_name'
:
'NonstopFile'
},
'creation_timestamp'
:
(
'django.db.models.fields.DateTimeField'
,
[],
{
'auto_now_add'
:
'True'
,
'null'
:
'True'
,
'blank'
:
'True'
}),
'filepath'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
}),
u
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'track'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
u
"orm['nonstop.Track']"
,
'null'
:
'True'
})
},
u
'nonstop.somalogline'
:
{
'Meta'
:
{
'ordering'
:
"['play_timestamp']"
,
'object_name'
:
'SomaLogLine'
},
'filepath'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
u
"orm['nonstop.NonstopFile']"
}),
u
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'play_timestamp'
:
(
'django.db.models.fields.DateTimeField'
,
[],
{})
},
u
'nonstop.track'
:
{
'Meta'
:
{
'object_name'
:
'Track'
},
'album'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
u
"orm['nonstop.Album']"
,
'null'
:
'True'
}),
'artist'
:
(
'django.db.models.fields.related.ForeignKey'
,
[],
{
'to'
:
u
"orm['nonstop.Artist']"
,
'null'
:
'True'
}),
'cfwb'
:
(
'django.db.models.fields.BooleanField'
,
[],
{
'default'
:
'False'
}),
u
'id'
:
(
'django.db.models.fields.AutoField'
,
[],
{
'primary_key'
:
'True'
}),
'instru'
:
(
'django.db.models.fields.BooleanField'
,
[],
{
'default'
:
'False'
}),
'language'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'3'
,
'blank'
:
'True'
}),
'sabam'
:
(
'django.db.models.fields.BooleanField'
,
[],
{
'default'
:
'True'
}),
'title'
:
(
'django.db.models.fields.CharField'
,
[],
{
'max_length'
:
'255'
})
}
}
complete_apps
=
[
'nonstop'
]
\ No newline at end of file
nonstop/models.py
View file @
d116486a
...
...
@@ -24,6 +24,7 @@ class Track(models.Model):
language
=
models
.
CharField
(
max_length
=
3
,
choices
=
LANGUAGES
,
blank
=
True
)
sabam
=
models
.
BooleanField
(
'SABAM'
,
default
=
True
)
cfwb
=
models
.
BooleanField
(
'CFWB'
,
default
=
False
)
class
NonstopFile
(
models
.
Model
):
...
...
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