##// END OF EJS Templates
Moved signatures block to the model block. All the signed content is in the 'content' block now. Removed edit time, previous and next posts links from the XML sync output because they can be computed from the post itself and can be changed locally for foreign posts (which breaks the signature)
Moved signatures block to the model block. All the signed content is in the 'content' block now. Removed edit time, previous and next posts links from the XML sync output because they can be computed from the post itself and can be changed locally for foreign posts (which breaks the signature)

File last commit:

r827:9fc1212e decentral
r838:2b96b9e7 decentral
Show More
0034_auto__del_field_post_public_key__add_field_post_global_id.py
89 lines | 5.4 KiB | text/x-python | PythonLexer
/ boards / migrations / 0034_auto__del_field_post_public_key__add_field_post_global_id.py
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as 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 'Post.public_key'
db.delete_column('boards_post', 'public_key')
# Adding field 'Post.global_id'
db.add_column('boards_post', 'global_id',
self.gf('django.db.models.fields.TextField')(null=True, blank=True),
keep_default=False)
def backwards(self, orm):
# Adding field 'Post.public_key'
db.add_column('boards_post', 'public_key',
self.gf('django.db.models.fields.TextField')(null=True, blank=True),
keep_default=False)
# Deleting field 'Post.global_id'
db.delete_column('boards_post', 'global_id')
models = {
'boards.ban': {
'Meta': {'object_name': 'Ban'},
'can_read': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'ip': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}),
'reason': ('django.db.models.fields.CharField', [], {'max_length': '200', 'default': "'Auto'"})
},
'boards.keypair': {
'Meta': {'object_name': 'KeyPair'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'key_type': ('django.db.models.fields.TextField', [], {}),
'primary': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'private_key': ('django.db.models.fields.TextField', [], {}),
'public_key': ('django.db.models.fields.TextField', [], {})
},
'boards.post': {
'Meta': {'ordering': "('id',)", 'object_name': 'Post'},
'_text_rendered': ('django.db.models.fields.TextField', [], {}),
'global_id': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'images': ('django.db.models.fields.related.ManyToManyField', [], {'db_index': 'True', 'null': 'True', 'to': "orm['boards.PostImage']", 'related_name': "'ip+'", 'blank': 'True', 'symmetrical': 'False'}),
'last_edit_time': ('django.db.models.fields.DateTimeField', [], {}),
'poster_ip': ('django.db.models.fields.GenericIPAddressField', [], {'max_length': '39'}),
'poster_user_agent': ('django.db.models.fields.TextField', [], {}),
'pub_time': ('django.db.models.fields.DateTimeField', [], {}),
'referenced_posts': ('django.db.models.fields.related.ManyToManyField', [], {'db_index': 'True', 'null': 'True', 'to': "orm['boards.Post']", 'related_name': "'rfp+'", 'blank': 'True', 'symmetrical': 'False'}),
'refmap': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'text': ('markupfield.fields.MarkupField', [], {'rendered_field': 'True'}),
'text_markup_type': ('django.db.models.fields.CharField', [], {'max_length': '30', 'default': "'bbcode'"}),
'thread_new': ('django.db.models.fields.related.ForeignKey', [], {'null': 'True', 'default': 'None', 'to': "orm['boards.Thread']"}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '200'})
},
'boards.postimage': {
'Meta': {'ordering': "('id',)", 'object_name': 'PostImage'},
'hash': ('django.db.models.fields.CharField', [], {'max_length': '36'}),
'height': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'image': ('boards.thumbs.ImageWithThumbsField', [], {'max_length': '100', 'blank': 'True'}),
'pre_height': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'pre_width': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'width': ('django.db.models.fields.IntegerField', [], {'default': '0'})
},
'boards.tag': {
'Meta': {'ordering': "('name',)", 'object_name': 'Tag'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '100'}),
'threads': ('django.db.models.fields.related.ManyToManyField', [], {'null': 'True', 'to': "orm['boards.Thread']", 'symmetrical': 'False', 'blank': 'True', 'related_name': "'tag+'"})
},
'boards.thread': {
'Meta': {'object_name': 'Thread'},
'archived': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'bump_time': ('django.db.models.fields.DateTimeField', [], {}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_edit_time': ('django.db.models.fields.DateTimeField', [], {}),
'replies': ('django.db.models.fields.related.ManyToManyField', [], {'null': 'True', 'to': "orm['boards.Post']", 'symmetrical': 'False', 'blank': 'True', 'related_name': "'tre+'"}),
'tags': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['boards.Tag']"})
}
}
complete_apps = ['boards']