mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 06:57:16 +02:00
Changed to Django1.7. Django 1.6 no longer supported. To change, upgrade django to 1.7+ and then run manage.py migrate, possibly followed by manage.py migrate --fake for objects and players.
This commit is contained in:
parent
1fc91f85ea
commit
bb36f2cb76
20 changed files with 431 additions and 14 deletions
|
|
@ -11,6 +11,8 @@ class HelpEntryForm(forms.ModelForm):
|
|||
"Defines how to display the help entry"
|
||||
class Meta:
|
||||
model = HelpEntry
|
||||
fields = '__all__'
|
||||
|
||||
db_help_category = forms.CharField(label="Help category", initial='General',
|
||||
help_text="organizes help entries in lists")
|
||||
db_lock_storage = forms.CharField(label="Locks", initial='view:all()',required=False,
|
||||
|
|
|
|||
31
src/help/migrations/0001_initial.py
Normal file
31
src/help/migrations/0001_initial.py
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('typeclasses', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='HelpEntry',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('db_key', models.CharField(help_text=b'key to search for', unique=True, max_length=255, verbose_name=b'help key')),
|
||||
('db_help_category', models.CharField(default=b'General', help_text=b'organizes help entries in lists', max_length=255, verbose_name=b'help category')),
|
||||
('db_entrytext', models.TextField(help_text=b'the main body of help text', verbose_name=b'help entry', blank=True)),
|
||||
('db_lock_storage', models.TextField(help_text=b'normally view:all().', verbose_name=b'locks', blank=True)),
|
||||
('db_staff_only', models.BooleanField(default=False)),
|
||||
('db_tags', models.ManyToManyField(help_text=b'tags on this object. Tags are simple string markers to identify, group and alias objects.', to='typeclasses.Tag', null=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Help Entry',
|
||||
'verbose_name_plural': 'Help Entries',
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue