File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,18 @@ class Component(models.Model):
33
33
forks = models .IntegerField (default = 0 , null = True )
34
34
watchers = models .IntegerField (default = 0 , null = True )
35
35
no_of_contributors = models .IntegerField (default = 0 , null = True )
36
- version = models .CharField (max_length = 20 , null = True )
36
+ version = models .CharField (max_length = 50 , null = True )
37
37
no_of_releases = models .IntegerField (default = 0 )
38
38
open_issues = models .IntegerField (default = 0 )
39
39
author = models .CharField (max_length = 50 , null = True )
40
40
author_email = models .EmailField (null = True )
41
41
npm_url = models .URLField (null = True )
42
42
homepage_url = models .URLField (null = True )
43
- license = models .CharField (max_length = 20 , null = True )
43
+ license = models .CharField (max_length = 50 , null = True )
44
44
45
45
def save (self , * args , ** kwargs ):
46
46
if not self .id :
47
47
self .created_time = timezone .now ()
48
- if not self .icon :
49
- get_remote_image (self )
50
48
if not self .url_name :
51
49
self .url_name = (str (self .name ).replace (' ' , '-' )).lower ()
52
50
return super (Component , self ).save (* args , ** kwargs )
You can’t perform that action at this time.
0 commit comments