[damned-lies] Removed obsolete Statistics fields
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Removed obsolete Statistics fields
- Date: Thu, 6 Feb 2014 15:16:48 +0000 (UTC)
commit e778b6a0ce915d1862da79fc529da8a10c06f404
Author: Claude Paroz <claude 2xlibre net>
Date: Thu Feb 6 16:16:20 2014 +0100
Removed obsolete Statistics fields
stats/fixtures/sample_data.json | 84 --------
stats/migrations/0013_remove_old_stat_fields.py | 243 +++++++++++++++++++++++
stats/models.py | 6 -
3 files changed, 243 insertions(+), 90 deletions(-)
---
diff --git a/stats/fixtures/sample_data.json b/stats/fixtures/sample_data.json
index 83cdee4..f5af077 100644
--- a/stats/fixtures/sample_data.json
+++ b/stats/fixtures/sample_data.json
@@ -792,10 +792,6 @@
"model": "stats.statistics",
"fields": {
"domain": 1,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 1,
"language": null,
"part_po": 1,
@@ -807,10 +803,6 @@
"model": "stats.statistics",
"fields": {
"domain": 1,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 2,
"language": 2,
"part_po": 2,
@@ -822,10 +814,6 @@
"model": "stats.statistics",
"fields": {
"domain": 1,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 3,
"language": 3,
"part_po": 3,
@@ -837,10 +825,6 @@
"model": "stats.statistics",
"fields": {
"domain": 2,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 4,
"language": null,
"part_po": 4,
@@ -852,10 +836,6 @@
"model": "stats.statistics",
"fields": {
"domain": 2,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 5,
"language": 2,
"part_po": 5,
@@ -867,10 +847,6 @@
"model": "stats.statistics",
"fields": {
"domain": 2,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 6,
"language": 3,
"part_po": 6,
@@ -882,10 +858,6 @@
"model": "stats.statistics",
"fields": {
"domain": 3,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 7,
"language": null,
"part_po": 8,
@@ -897,10 +869,6 @@
"model": "stats.statistics",
"fields": {
"domain": 3,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 9,
"language": 2,
"part_po": 9,
@@ -912,10 +880,6 @@
"model": "stats.statistics",
"fields": {
"domain": 3,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 10,
"language": 3,
"part_po": 11,
@@ -927,10 +891,6 @@
"model": "stats.statistics",
"fields": {
"domain": 4,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 12,
"language": null,
"part_po": 12,
@@ -942,10 +902,6 @@
"model": "stats.statistics",
"fields": {
"domain": 4,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 13,
"language": 2,
"part_po": 13,
@@ -957,10 +913,6 @@
"model": "stats.statistics",
"fields": {
"domain": 4,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 14,
"language": 3,
"part_po": 14,
@@ -972,10 +924,6 @@
"model": "stats.statistics",
"fields": {
"domain": 3,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 15,
"language": null,
"part_po": 15,
@@ -987,10 +935,6 @@
"model": "stats.statistics",
"fields": {
"domain": 3,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 16,
"language": 2,
"part_po": 16,
@@ -1002,10 +946,6 @@
"model": "stats.statistics",
"fields": {
"domain": 3,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 17,
"language": 3,
"part_po": 17,
@@ -1017,10 +957,6 @@
"model": "stats.statistics",
"fields": {
"domain": 4,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 18,
"language": null,
"part_po": 18,
@@ -1032,10 +968,6 @@
"model": "stats.statistics",
"fields": {
"domain": 4,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 19,
"language": 2,
"part_po": 19,
@@ -1047,10 +979,6 @@
"model": "stats.statistics",
"fields": {
"domain": 4,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 20,
"language": 3,
"part_po": 20,
@@ -1062,10 +990,6 @@
"model": "stats.statistics",
"fields": {
"domain": 5,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 21,
"language": null,
"part_po": 21,
@@ -1077,10 +1001,6 @@
"model": "stats.statistics",
"fields": {
"domain": 5,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 22,
"language": 2,
"part_po": 22,
@@ -1092,10 +1012,6 @@
"model": "stats.statistics",
"fields": {
"domain": 5,
- "old_translated": 0,
- "old_date": "2011-08-30 23:11:56",
- "old_fuzzy": 0,
- "old_untranslated": 0,
"full_po": 23,
"language": 3,
"part_po": 23,
diff --git a/stats/migrations/0013_remove_old_stat_fields.py b/stats/migrations/0013_remove_old_stat_fields.py
new file mode 100644
index 0000000..be9ae62
--- /dev/null
+++ b/stats/migrations/0013_remove_old_stat_fields.py
@@ -0,0 +1,243 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+ def forwards(self, orm):
+ # Deleting field 'Statistics.old_translated'
+ db.delete_column('statistics', 'old_translated')
+
+ # Deleting field 'Statistics.old_fuzzy'
+ db.delete_column('statistics', 'old_fuzzy')
+
+ # Deleting field 'Statistics.old_untranslated'
+ db.delete_column('statistics', 'old_untranslated')
+
+ # Deleting field 'Statistics.old_date'
+ db.delete_column('statistics', 'old_date')
+
+
+ # Changing field 'Statistics.full_po'
+ db.alter_column('statistics', 'full_po_id',
self.gf('django.db.models.fields.related.OneToOneField')(unique=True, null=True, on_delete=models.SET_NULL,
to=orm['stats.PoFile']))
+
+ # Changing field 'Statistics.part_po'
+ db.alter_column('statistics', 'part_po_id',
self.gf('django.db.models.fields.related.OneToOneField')(unique=True, null=True, on_delete=models.SET_NULL,
to=orm['stats.PoFile']))
+
+ def backwards(self, orm):
+ # Adding field 'Statistics.old_translated'
+ db.add_column('statistics', 'old_translated',
+ self.gf('django.db.models.fields.IntegerField')(default=0),
+ keep_default=False)
+
+ # Adding field 'Statistics.old_fuzzy'
+ db.add_column('statistics', 'old_fuzzy',
+ self.gf('django.db.models.fields.IntegerField')(default=0),
+ keep_default=False)
+
+ # Adding field 'Statistics.old_untranslated'
+ db.add_column('statistics', 'old_untranslated',
+ self.gf('django.db.models.fields.IntegerField')(default=0),
+ keep_default=False)
+
+
+ # User chose to not deal with backwards NULL issues for 'Statistics.old_date'
+ raise RuntimeError("Cannot reverse this migration. 'Statistics.old_date' and its values cannot be
restored.")
+
+ # The following code is provided here to aid in writing a correct migration # Adding field
'Statistics.old_date'
+ db.add_column('statistics', 'old_date',
+ self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True),
+ keep_default=False)
+
+
+ # Changing field 'Statistics.full_po'
+ db.alter_column('statistics', 'full_po_id',
self.gf('django.db.models.fields.related.OneToOneField')(unique=True, null=True, to=orm['stats.PoFile']))
+
+ # Changing field 'Statistics.part_po'
+ db.alter_column('statistics', 'part_po_id',
self.gf('django.db.models.fields.related.OneToOneField')(unique=True, null=True, to=orm['stats.PoFile']))
+
+ models = {
+ u'auth.group': {
+ 'Meta': {'object_name': 'Group'},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
+ 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to':
u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
+ },
+ u'auth.permission': {
+ 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')",
'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
+ 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+ 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to':
u"orm['contenttypes.ContentType']"}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
+ },
+ u'auth.user': {
+ 'Meta': {'object_name': 'User'},
+ 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default':
'datetime.datetime.now'}),
+ 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+ 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+ 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False',
'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+ 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'last_login': ('django.db.models.fields.DateTimeField', [], {'default':
'datetime.datetime.now'}),
+ 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+ 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+ 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical':
'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
+ 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
+ },
+ u'contenttypes.contenttype': {
+ 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name':
'ContentType', 'db_table': "'django_content_type'"},
+ 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+ },
+ u'languages.language': {
+ 'Meta': {'ordering': "('name',)", 'object_name': 'Language', 'db_table': "'language'"},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'locale': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '15'}),
+ 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'}),
+ 'plurals': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
+ 'team': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to':
u"orm['teams.Team']", 'null': 'True', 'blank': 'True'})
+ },
+ u'people.person': {
+ 'Meta': {'ordering': "('username',)", 'object_name': 'Person', 'db_table': "'person'",
'_ormbases': [u'auth.User']},
+ 'activation_key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'null': 'True',
'blank': 'True'}),
+ 'bugzilla_account': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null':
'True', 'blank': 'True'}),
+ 'image': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank':
'True'}),
+ 'irc_nick': ('django.db.models.fields.SlugField', [], {'max_length': '20', 'null': 'True',
'blank': 'True'}),
+ 'svn_account': ('django.db.models.fields.SlugField', [], {'max_length': '20', 'null': 'True',
'blank': 'True'}),
+ u'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['auth.User']",
'unique': 'True', 'primary_key': 'True'}),
+ 'webpage_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True',
'blank': 'True'})
+ },
+ u'stats.branch': {
+ 'Meta': {'ordering': "('name',)", 'unique_together': "(('name', 'module'),)", 'object_name':
'Branch', 'db_table': "'branch'"},
+ 'file_hashes': ('common.fields.DictionaryField', [], {'default': "''", 'blank': 'True'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'module': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['stats.Module']"}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+ 'vcs_subpath': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True',
'blank': 'True'}),
+ 'weight': ('django.db.models.fields.IntegerField', [], {'default': '0'})
+ },
+ u'stats.category': {
+ 'Meta': {'unique_together': "(('release', 'branch'),)", 'object_name': 'Category', 'db_table':
"'category'"},
+ 'branch': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['stats.Branch']"}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '30'}),
+ 'release': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['stats.Release']"})
+ },
+ u'stats.domain': {
+ 'Meta': {'ordering': "('-dtype', 'name')", 'object_name': 'Domain', 'db_table': "'domain'"},
+ 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+ 'directory': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+ 'dtype': ('django.db.models.fields.CharField', [], {'default': "'ui'", 'max_length': '5'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'linguas_location': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null':
'True', 'blank': 'True'}),
+ 'module': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['stats.Module']"}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+ 'pot_method': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True',
'blank': 'True'}),
+ 'red_filter': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
+ },
+ u'stats.information': {
+ 'Meta': {'object_name': 'Information', 'db_table': "'information'"},
+ 'description': ('django.db.models.fields.TextField', [], {}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'statistics': ('django.db.models.fields.related.ForeignKey', [], {'to':
u"orm['stats.Statistics']"}),
+ 'type': ('django.db.models.fields.CharField', [], {'max_length': '10'})
+ },
+ u'stats.informationarchived': {
+ 'Meta': {'object_name': 'InformationArchived', 'db_table': "'information_archived'"},
+ 'description': ('django.db.models.fields.TextField', [], {}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'statistics': ('django.db.models.fields.related.ForeignKey', [], {'to':
u"orm['stats.StatisticsArchived']"}),
+ 'type': ('django.db.models.fields.CharField', [], {'max_length': '10'})
+ },
+ u'stats.module': {
+ 'Meta': {'ordering': "('name',)", 'object_name': 'Module', 'db_table': "'module'"},
+ 'archived': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'bugs_base': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True',
'blank': 'True'}),
+ 'bugs_component': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True',
'blank': 'True'}),
+ 'bugs_product': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True',
'blank': 'True'}),
+ 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+ 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+ 'ext_platform': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True',
'blank': 'True'}),
+ 'homepage': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True',
'blank': 'True'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False',
'related_name': "'maintains_modules'", 'blank': 'True', 'db_table': "'module_maintainer'", 'to':
u"orm['people.Person']"}),
+ 'name': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
+ 'vcs_root': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
+ 'vcs_type': ('django.db.models.fields.CharField', [], {'max_length': '5'}),
+ 'vcs_web': ('django.db.models.fields.URLField', [], {'max_length': '200'})
+ },
+ u'stats.pofile': {
+ 'Meta': {'object_name': 'PoFile', 'db_table': "'pofile'"},
+ 'figures': ('common.fields.JSONField', [], {'null': 'True', 'blank': 'True'}),
+ 'fuzzy': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+ 'fuzzy_words': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'path': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank':
'True'}),
+ 'translated': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+ 'translated_words': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+ 'untranslated': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+ 'untranslated_words': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+ 'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank':
'True'})
+ },
+ u'stats.release': {
+ 'Meta': {'ordering': "('status', '-name')", 'object_name': 'Release', 'db_table': "'release'"},
+ 'branches': ('django.db.models.fields.related.ManyToManyField', [], {'related_name':
"'releases'", 'symmetrical': 'False', 'through': u"orm['stats.Category']", 'to': u"orm['stats.Branch']"}),
+ 'description': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.SlugField', [], {'max_length': '20'}),
+ 'status': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
+ 'string_frozen': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'weight': ('django.db.models.fields.IntegerField', [], {'default': '0'})
+ },
+ u'stats.statistics': {
+ 'Meta': {'unique_together': "(('branch', 'domain', 'language'),)", 'object_name': 'Statistics',
'db_table': "'statistics'"},
+ 'branch': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['stats.Branch']"}),
+ 'domain': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['stats.Domain']"}),
+ 'full_po': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'stat_f'",
'unique': 'True', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['stats.PoFile']"}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'language': ('django.db.models.fields.related.ForeignKey', [], {'to':
u"orm['languages.Language']", 'null': 'True'}),
+ 'part_po': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'stat_p'",
'unique': 'True', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['stats.PoFile']"})
+ },
+ u'stats.statisticsarchived': {
+ 'Meta': {'object_name': 'StatisticsArchived', 'db_table': "'statistics_archived'"},
+ 'branch': ('django.db.models.fields.TextField', [], {}),
+ 'date': ('django.db.models.fields.DateTimeField', [], {}),
+ 'domain': ('django.db.models.fields.TextField', [], {}),
+ 'fuzzy': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'language': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
+ 'module': ('django.db.models.fields.TextField', [], {}),
+ 'translated': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+ 'type': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
+ 'untranslated': ('django.db.models.fields.IntegerField', [], {'default': '0'})
+ },
+ u'teams.role': {
+ 'Meta': {'unique_together': "(('team', 'person'),)", 'object_name': 'Role', 'db_table':
"'role'"},
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+ 'person': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['people.Person']"}),
+ 'role': ('django.db.models.fields.CharField', [], {'default': "'translator'", 'max_length':
'15'}),
+ 'team': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['teams.Team']"})
+ },
+ u'teams.team': {
+ 'Meta': {'ordering': "('description',)", 'object_name': 'Team', 'db_table': "'team'"},
+ 'description': ('django.db.models.fields.TextField', [], {}),
+ u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'mailing_list': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True',
'blank': 'True'}),
+ 'mailing_list_subscribe': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null':
'True', 'blank': 'True'}),
+ 'members': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'teams'",
'symmetrical': 'False', 'through': u"orm['teams.Role']", 'to': u"orm['people.Person']"}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
+ 'presentation': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+ 'use_workflow': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+ 'webpage_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True',
'blank': 'True'})
+ }
+ }
+
+ complete_apps = ['stats']
\ No newline at end of file
diff --git a/stats/models.py b/stats/models.py
index 5994f70..2f05c11 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -1335,12 +1335,6 @@ class Statistics(models.Model):
domain = models.ForeignKey(Domain)
language = models.ForeignKey(Language, null=True)
- # obsolete fields (deleted after migration)
- old_date = models.DateTimeField(auto_now_add=True) # obsolete
- old_translated = models.IntegerField(default=0) # obsolete
- old_fuzzy = models.IntegerField(default=0) # obsolete
- old_untranslated = models.IntegerField(default=0) # obsolete
-
full_po = models.OneToOneField(PoFile, null=True, related_name='stat_f', on_delete=models.SET_NULL)
part_po = models.OneToOneField(PoFile, null=True, related_name='stat_p', on_delete=models.SET_NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]