Skip to content

Commit 62d83c8

Browse files
committed
Increased size of keyword name field
1 parent 0d08145 commit 62d83c8

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

main/management/commands/updatecomponents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Command(BaseCommand):
3333
help = "Command to update the details of all the components from Github"
3434

3535
def handle(self, *args, **options):
36-
all_components = get_npm_data()['objects']
36+
all_components = get_npm_data()['objects'][:5]
3737
for component in all_components:
3838
component_data = component['package']
3939
try:
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.10 on 2018-06-03 07:51
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', '0006_auto_20180603_0745'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='tag',
17+
name='name',
18+
field=models.CharField(max_length=50),
19+
),
20+
]

main/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __unicode__(self):
5353
return self.name
5454

5555
class Tag(models.Model):
56-
name = models.CharField(max_length=20)
56+
name = models.CharField(max_length=50)
5757

5858
def __unicode__(self):
5959
return self.name

0 commit comments

Comments
 (0)