Fixes in percentfield and config_admin
This commit is contained in:
parent
a3cc015c34
commit
fc15bd74bb
3 changed files with 7 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from paramecio2.libraries.db.webmodel import WebModel
|
||||
from paramecio2.libraries.load_apps import load_extra_modules
|
||||
|
||||
secret_key="im smoking fool"
|
||||
|
||||
|
|
@ -10,6 +11,8 @@ static_url_path='/media/default'
|
|||
|
||||
apps={'welcome': ['paramecio2.modules.welcome', 'welcome_app', '/']}
|
||||
|
||||
apps=load_extra_modules(apps)
|
||||
|
||||
default_module='welcome'
|
||||
|
||||
theme="default"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from paramecio2.libraries.db.corefields import IntegerField
|
||||
from paramecio2.libraries.db.corefields import DecimalField
|
||||
|
||||
class PercentField(IntegerField):
|
||||
class PercentField(DecimalField):
|
||||
"""Field used for save percent values from 0 to 100."""
|
||||
|
||||
def __init__(self, name, required=False):
|
||||
|
|
|
|||
|
|
@ -7,6 +7,6 @@ config_admin.append([I18n.lang('admin', 'users', 'Users')])
|
|||
|
||||
config_admin.append([I18n.lang('admin', 'users_edit', 'Users edit'), 'paramecio2.modules.admin.admin.ausers', 'admin_app.ausers', 'fa-user'])
|
||||
|
||||
config_admin.append([I18n.lang('admin', 'modules', 'Modules')])
|
||||
#config_admin.append([I18n.lang('admin', 'modules', 'Modules')])
|
||||
|
||||
config_admin.append([I18n.lang('admin', 'edit_module', 'Edit modules'), 'paramecio2.modules.admin.admin.modules', 'admin_app.amodules', 'fa-dropbox'])
|
||||
#config_admin.append([I18n.lang('admin', 'edit_module', 'Edit modules'), 'paramecio2.modules.admin.admin.modules', 'admin_app.amodules', 'fa-dropbox'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue