Database schema has changed. Run migrations if you use South. Started work on tidying up admin interface.

This commit is contained in:
Griatch 2011-09-14 22:34:10 +02:00
parent 60e980be67
commit 399919a8a9
14 changed files with 562 additions and 25 deletions

View file

@ -0,0 +1,34 @@
# encoding: 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):
# Changing field 'HelpEntry.db_lock_storage'
db.alter_column('help_helpentry', 'db_lock_storage', self.gf('django.db.models.fields.CharField')(max_length=512))
def backwards(self, orm):
# Changing field 'HelpEntry.db_lock_storage'
db.alter_column('help_helpentry', 'db_lock_storage', self.gf('django.db.models.fields.TextField')())
models = {
'help.helpentry': {
'Meta': {'object_name': 'HelpEntry'},
'db_entrytext': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'db_help_category': ('django.db.models.fields.CharField', [], {'default': "'General'", 'max_length': '255'}),
'db_key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
'db_lock_storage': ('django.db.models.fields.CharField', [], {'max_length': '512', 'blank': 'True'}),
'db_permissions': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
'db_staff_only': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
}
}
complete_apps = ['help']

View file

@ -50,7 +50,7 @@ class HelpEntry(SharedMemoryModel):
# a string of permissionstrings, separated by commas.
db_permissions = models.CharField(max_length=255, blank=True)
# lock string storage
db_lock_storage = models.TextField(blank=True)
db_lock_storage = models.CharField(max_length=512, blank=True)
# (deprecated, only here to allow MUX helpfile load (don't use otherwise)).
# TODO: remove this when not needed anymore.
db_staff_only = models.BooleanField(default=False)