X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f20c260cfc805924834ea7e545ac2a84a4042b28..4437d85206a7deb768c75a4fd1cb1b474e87efe3:/apps/wiki/migrations/0003_auto__add_book__add_chunk__add_unique_chunk_book_number__add_unique_ch.py diff --git a/apps/wiki/migrations/0003_auto__add_book__add_chunk__add_unique_chunk_book_number__add_unique_ch.py b/apps/wiki/migrations/0003_auto__add_book__add_chunk__add_unique_chunk_book_number__add_unique_ch.py index 59f1f620..229825d2 100644 --- a/apps/wiki/migrations/0003_auto__add_book__add_chunk__add_unique_chunk_book_number__add_unique_ch.py +++ b/apps/wiki/migrations/0003_auto__add_book__add_chunk__add_unique_chunk_book_number__add_unique_ch.py @@ -98,7 +98,7 @@ def migrate_file_from_hg(orm, fname, entry): maxrev = entry.filerev() gallery_link = None; for rev in xrange(maxrev + 1): - # TODO: author, tags, gallery + # TODO: tags fctx = entry.filectx(rev) data = fctx.data() gallery_link = gallery(fname, data) @@ -109,6 +109,7 @@ def migrate_file_from_hg(orm, fname, entry): patch=make_patch(old_data, data), created_at=datetime.datetime.fromtimestamp(fctx.date()[0]), description=fctx.description().decode("utf-8", 'replace'), + author_desc=fctx.user().decode("utf-8", 'replace'), parent=chunk.head ) chunk.head = head @@ -227,6 +228,7 @@ class Migration(SchemaMigration): 'dvcs.change': { 'Meta': {'ordering': "('created_at',)", 'unique_together': "(['tree', 'revision'],)", 'object_name': 'Change'}, 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}), + 'author_desc': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}), 'created_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}), 'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),