Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(0)  |  Derive(6)  |  Import(2)

src/d/j/django-options-HEAD/django_options/options.py   django-options(Download)
        if not form_classes:
            # autoload inner OptionForm classes
            from django_options.forms import OptionsForm
            form_classes = OptionsForm.nested_classes_in(pageView)
 

src/d/j/django-options-HEAD/django_options/testapp/app/admin.py   django-options(Download)
from django import forms
from django.contrib.admin.widgets import AdminFileWidget
 
from django_options.admin import OptionsPage, admin_pages, option
from django_options.forms import OptionsForm
    class SiteInfoForm(OptionsForm):
 
        code = 'site_info'
        title = 'Site information'
        description = 'small info'
        class SiteSubInfoForm(OptionsForm):
 
            code = 'site_sub_info'
            title = ''
 
        class SiteSubInfoForm(OptionsForm):
 
            code = 'site_sub_info2'
            description = 'Sub site info'
            options = (('site_author','site_author_email'),)
        class ProfileInfoForm(OptionsForm):
 
            code = 'user_profile'
            title = ''
            optionsets = (('User profile', {'fields': ('avatar',('password','password_confirm',),)}),)