Skip to content
This repository has been archived by the owner on Mar 22, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
johncosta committed Sep 29, 2013
2 parents 3d2d122 + 6f70a76 commit df921df
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
57 changes: 57 additions & 0 deletions scorinator/score/migrations/0005_addattr2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models

class Migration(DataMigration):

def forwards(self, orm):
"Write your forwards methods here."
sa1 = orm.ScoreAttribute()
sa1.name = "Number of open issues for project"
sa1.description = "Number of open issues"
sa1.slug = 'open_issues_count'
sa1.save()

def backwards(self, orm):
"Write your backwards methods here."

models = {
u'project.project': {
'Meta': {'ordering': "('name',)", 'object_name': 'Project'},
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'description': ('django.db.models.fields.TextField', [], {}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
'repo_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'})
},
u'score.projectscore': {
'Meta': {'ordering': "('total_score',)", 'object_name': 'ProjectScore'},
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'project': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['project.Project']"}),
'total_score': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '8', 'decimal_places': '2', 'blank': 'True'})
},
u'score.projectscoreattribute': {
'Meta': {'object_name': 'ProjectScoreAttribute'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'project_score': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['score.ProjectScore']"}),
'result': ('django.db.models.fields.TextField', [], {}),
'score_attribute': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['score.ScoreAttribute']"}),
'score_value': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '8', 'decimal_places': '2', 'blank': 'True'})
},
u'score.scoreattribute': {
'Meta': {'object_name': 'ScoreAttribute'},
'description': ('django.db.models.fields.TextField', [], {}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
}
}

complete_apps = ['score']
symmetrical = True
3 changes: 2 additions & 1 deletion worker/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ hiredis==0.1.1
PyYAML==3.10
simplejson==3.1.3
requests==1.2.3
dulwich==0.9.3
dulwich==0.9.3
PyGithub==1.19.0

0 comments on commit df921df

Please sign in to comment.