Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
1c83df44
Commit
1c83df44
authored
Mar 01, 2016
by
Okhin
Browse files
More migrations
parent
063123f8
Changes
6
Hide whitespace changes
Inline
Side-by-side
bt/migrations/0001_initial.py
View file @
1c83df44
...
...
@@ -64,11 +64,11 @@ class Migration(migrations.Migration):
(
'media'
,
models
.
CharField
(
blank
=
True
,
max_length
=
20
,
choices
=
[(
b
'fixed'
,
'Fixed'
),
(
b
'mobile'
,
'Mobile'
)])),
(
'temporary'
,
models
.
BooleanField
()),
(
'contractual'
,
models
.
BooleanField
()),
(
'contract_excerpt'
,
models
.
TextField
(
blank
=
True
)),
(
'contract_excerpt'
,
models
.
TextField
(
null
=
True
,
blank
=
True
)),
(
'loophole'
,
models
.
BooleanField
()),
(
'activationid'
,
models
.
CharField
(
max_length
=
128
,
blank
=
True
)),
(
'state'
,
models
.
CharField
(
default
=
b
'new'
,
max_length
=
20
,
blank
=
True
,
choices
=
[(
b
'moreinfo'
,
'Need more info'
),
(
b
'new'
,
'New'
),
(
b
'verified'
,
'Verified'
),
(
b
'duplicate'
,
'Duplicate'
),
(
b
'ooscope'
,
'Out of scope'
),
(
b
'closed'
,
'Closed'
)])),
(
'editorial'
,
models
.
TextField
(
blank
=
True
)),
(
'editorial'
,
models
.
TextField
(
null
=
True
,
blank
=
True
)),
(
'operator_ref'
,
models
.
ForeignKey
(
related_name
=
'violations'
,
to
=
'bt.Operator'
)),
],
),
...
...
bt/migrations/0001_initial.pyc
View file @
1c83df44
No preview for this file type
bt/migrations/0003_auto_20160301_2032.py
View file @
1c83df44
...
...
@@ -7,8 +7,8 @@ def archive_old(apps, schema_editor):
Violation
=
apps
.
get_model
(
"bt"
,
"Violation"
)
for
violation
in
Violation
.
objects
.
all
():
pers
on
.
old
=
True
pers
on
.
save
()
violati
on
.
old
=
True
violati
on
.
save
()
class
Migration
(
migrations
.
Migration
):
...
...
bt/migrations/0003_auto_20160301_2032.pyc
View file @
1c83df44
No preview for this file type
bt/migrations/0004_auto_20160301_2103.py
0 → 100644
View file @
1c83df44
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'bt'
,
'0003_auto_20160301_2032'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'violation'
,
name
=
'activationid'
,
field
=
models
.
CharField
(
max_length
=
128
,
null
=
True
,
blank
=
True
),
),
]
bt/models.py
View file @
1c83df44
...
...
@@ -84,12 +84,12 @@ class Violation(models.Model):
media
=
models
.
CharField
(
max_length
=
20
,
choices
=
MEDIA
,
blank
=
True
)
temporary
=
models
.
BooleanField
(
)
contractual
=
models
.
BooleanField
()
contract_excerpt
=
models
.
TextField
(
blank
=
True
)
contract_excerpt
=
models
.
TextField
(
null
=
True
,
blank
=
True
)
loophole
=
models
.
BooleanField
()
activationid
=
models
.
CharField
(
max_length
=
128
,
blank
=
True
)
activationid
=
models
.
CharField
(
max_length
=
128
,
null
=
True
,
blank
=
True
)
state
=
models
.
CharField
(
max_length
=
20
,
choices
=
STATUS
,
default
=
'new'
,
blank
=
True
)
editorial
=
models
.
TextField
(
blank
=
True
)
old
=
models
.
BooleanField
(
default
=
"False"
,
blank
=
False
)
editorial
=
models
.
TextField
(
null
=
True
,
blank
=
True
)
old
=
models
.
BooleanField
(
default
=
"False"
)
def
confirmations
(
self
):
return
self
.
confirmation_set
.
filter
(
key
=
''
).
count
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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