Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-table-data
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esi-data-scrapping
esi-table-data
Commits
c564c327
Commit
c564c327
authored
Aug 10, 2017
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add blank attribute to model
parent
f0401ce0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
0013_auto_20170810_1306.py
esi/scraper/migrations/0013_auto_20170810_1306.py
+20
-0
models.py
esi/scraper/models.py
+1
-1
No files found.
esi/scraper/migrations/0013_auto_20170810_1306.py
0 → 100644
View file @
c564c327
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-08-10 13:06
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'scraper'
,
'0012_mldata'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'spider'
,
name
=
'media'
,
field
=
models
.
IntegerField
(
blank
=
True
,
default
=
None
,
null
=
True
),
),
]
esi/scraper/models.py
View file @
c564c327
...
...
@@ -8,7 +8,7 @@ from django_celery_beat.models import PeriodicTask
class
Spider
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
50
,
default
=
None
,
null
=
True
)
sp_name
=
models
.
CharField
(
max_length
=
20
,
default
=
None
)
media
=
models
.
IntegerField
(
default
=
None
,
null
=
True
)
media
=
models
.
IntegerField
(
default
=
None
,
null
=
True
,
blank
=
True
)
def
__str__
(
self
):
return
self
.
name
...
...
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