File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 1
1
from django .core .management import BaseCommand
2
2
import urllib2 , json , urllib
3
3
from main .models import *
4
- from biojs .config import *
4
+ try :
5
+ from biojs .config import *
6
+ except :
7
+ GITHUB_CLIENT_ID = ''
8
+ GITHUB_CLIENT_SECRET = ''
5
9
from datetime import datetime
6
10
import pytz
7
11
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by Django 1.10 on 2018-06-03 07:32
3
+ from __future__ import unicode_literals
4
+
5
+ from django .db import migrations , models
6
+
7
+
8
+ class Migration (migrations .Migration ):
9
+
10
+ dependencies = [
11
+ ('main' , '0003_auto_20180530_1958' ),
12
+ ]
13
+
14
+ operations = [
15
+ migrations .AlterField (
16
+ model_name = 'component' ,
17
+ name = 'modified_time' ,
18
+ field = models .DateTimeField (null = True ),
19
+ ),
20
+ ]
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class Component(models.Model):
22
22
stars = models .IntegerField (default = 0 , null = True )
23
23
downloads = models .BigIntegerField (default = 0 , null = True )
24
24
created_time = models .DateTimeField (editable = False , null = True )
25
- modified_time = models .DateTimeField ()
25
+ modified_time = models .DateTimeField (null = True )
26
26
tags = models .ManyToManyField ('Tag' , null = True )
27
27
icon_url = models .URLField (null = True , blank = True )
28
28
icon = models .ImageField (null = True , upload_to = 'icons/' )
You can’t perform that action at this time.
0 commit comments