# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from ionyweb.administration.actions.utils import get_actions_urls from models import Link from forms import LinkForm # Generic Action View urlpatterns = get_actions_urls(Link, form_class=LinkForm, sortable=True)
# -*- coding: utf-8 -*- from ionyweb.administration.actions.utils import get_actions_urls from models import Album, Image from forms import AlbumForm from actions.views import (ImageActionAdminListView, ImageActionAdminDetailView) urlpatterns = get_actions_urls(Album, form_class=AlbumForm, sortable=True, list_display=('title', 'slug', 'nb_images', 'edit_images_action')) urlpatterns += get_actions_urls(Image, list_view_class=ImageActionAdminListView, detail_view_class=ImageActionAdminDetailView, prefix_url='album/(?P<album_pk>[0-9]*)/', sortable=True, list_display=('title', 'get_thumb'))
# -*- coding: utf-8 -*- from ionyweb.administration.actions.utils import get_actions_urls from models import Event from forms import EventForm urlpatterns = get_actions_urls(Event, form_class=EventForm, list_display=('title', 'display_description_admin', 'start_date', 'is_published', 'last_modif'))
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from ionyweb.administration.actions.utils import get_actions_urls from models import EntryLink from forms import EntryLink_Form # Generic Action View urlpatterns = get_actions_urls(EntryLink, form_class=EntryLink_Form, sortable=True)
# -*- coding: utf-8 -*- from ionyweb.administration.actions.utils import get_actions_urls from models import Event from forms import EventForm urlpatterns = get_actions_urls( Event, form_class=EventForm, list_display=('title', 'display_description_admin', 'start_date', 'is_published', 'last_modif'))
# -*- coding: utf-8 -*- from ionyweb.administration.actions.utils import get_actions_urls from models import Slide from forms import SlideForm # Generic Action View urlpatterns = get_actions_urls(Slide, form_class=SlideForm, sortable=True, list_display=('image', 'get_thumb'))
# -*- coding: utf-8 -*- from ionyweb.administration.actions.utils import get_actions_urls from models import Entry, Category from forms import EntryForm, CategoryForm from wa_actions_views import EntryActionAdminDetailView urlpatterns = get_actions_urls(Entry, form_class=EntryForm, obj_field='blog', list_display=('get_title', 'get_category', 'get_publication_date', 'get_status'), detail_view_class=EntryActionAdminDetailView) urlpatterns += get_actions_urls(Category, form_class=CategoryForm, obj_field='blog', list_display=('get_title',))
# -*- coding: utf-8 -*- from ionyweb.administration.actions.utils import get_actions_urls from models import Country, MusicStyle, Group # from forms import GroupForm # from actions.views import (ImageActionAdminListView, # ImageActionAdminDetailView) urlpatterns = get_actions_urls(Country) urlpatterns += get_actions_urls(MusicStyle) urlpatterns += get_actions_urls(Group)
# -*- coding: utf-8 -*- from ionyweb.administration.actions.utils import get_actions_urls from models import Category, Client, Reference from forms import ReferenceForm urlpatterns = get_actions_urls(Category) urlpatterns += get_actions_urls(Client) urlpatterns += get_actions_urls(Reference, form_class=ReferenceForm, obj_field='book')
# -*- coding: utf-8 -*- from ionyweb.administration.actions.utils import get_actions_urls from models import Entry, Category from forms import EntryForm, CategoryForm from wa_actions_views import EntryActionAdminDetailView urlpatterns = get_actions_urls(Entry, form_class=EntryForm, obj_field='blog', list_display=('get_title', 'get_category', 'get_publication_date', 'get_status'), detail_view_class=EntryActionAdminDetailView) urlpatterns += get_actions_urls(Category, form_class=CategoryForm, obj_field='blog', list_display=('get_title', ))
# -*- coding: utf-8 -*- from ionyweb.administration.actions.utils import get_actions_urls from models import Slide from forms import SlideForm # Generic Action View urlpatterns = get_actions_urls(Slide, form_class=SlideForm, sortable=True, list_display=('image', 'get_thumb') )