from customers.cbv_base.DeleteView import DeleteViewCustom from customers.cbv_base.UpdateView import UpdateViewCustom from customers.cbv_base.ListView import ListViewCustomOrderBy from customers.cbv_base.DetailView import DetailViewCustom from .cbv import UserCreate from .models import UserProfile from .forms import UserForm, UserFormNoPassw from .views import detail, repartition_project, export_csv, repartition_temps urlpatterns = [ url(r'^(list)?$', ListViewCustomOrderBy.as_view( model=UserProfile, cbv_order_by="first_name", url_delete_name = "users:delete", url_update_name = "users:update", url_create_name = "users:create", url_list_name = "users:list", url_detail_name = "users:detail", template_name="cbv/ListViewCustom.html" ), name='list' ), url(r'^create$', UserCreate.as_view( model=UserProfile, success_url="users:list", url_name="users:create", form_class=UserForm, template_name="cbv/CreateViewCustom.html" ), name='create'
from customers.cbv_base.CreateView import CreateViewCustom from customers.cbv_base.DeleteView import DeleteViewCustom from customers.cbv_base.UpdateView import UpdateViewCustom from customers.cbv_base.ListView import ListViewCustomOrderBy from customers.cbv_base.DetailView import DetailViewCustom from .models import Project from .views import detail # Faire une liste où sont affichées les dernières tâches effectuées de chaque utilisateur urlpatterns = [ url(r'^(list)?$', ListViewCustomOrderBy.as_view( model=Project, cbv_order_by="name", url_delete_name = "projects:delete", url_update_name = "projects:update", url_create_name = "projects:create", url_list_name = "projects:list", url_detail_name = "projects:detail", template_name="cbv/ListViewCustom.html" ), name='list' ), url(r'^create$', CreateViewCustom.as_view( model=Project, success_url="projects:list", url_name="projects:create", template_name="cbv/CreateViewCustom.html", fields={'name', 'customer', } ), name='create'
from customers.cbv_base.CreateView import CreateViewCustom from customers.cbv_base.DeleteView import DeleteViewCustom from customers.cbv_base.UpdateView import UpdateViewCustom from customers.cbv_base.ListView import ListViewCustomOrderBy from customers.cbv_base.DetailView import DetailViewCustom from .models import Task from .cbv import TaskCreate from .forms import TaskForm urlpatterns = [ url(r'^(list)?$', ListViewCustomOrderBy.as_view( model=Task, cbv_order_by="created", url_delete_name="tasks:delete", url_update_name="tasks:update", url_create_name="tasks:create", url_list_name="tasks:list", url_detail_name="tasks:detail", template_name="cbv/ListViewCustom.html", ), name='list'), url(r'^create$', TaskCreate.as_view( model=Task, success_url="tasks:list", url_name="tasks:create", template_name="cbv/CreateViewCustom.html", form_class=TaskForm, ), name='create'), url(r'^update-(?P<pk>\d+)$',
from customers.cbv_base.CreateView import CreateViewCustom from customers.cbv_base.DeleteView import DeleteViewCustom from customers.cbv_base.UpdateView import UpdateViewCustom from customers.cbv_base.ListView import ListViewCustomOrderBy from customers.cbv_base.DetailView import DetailViewCustom from .models import Task from .cbv import TaskCreate from .forms import TaskForm urlpatterns = [ url(r'^(list)?$', ListViewCustomOrderBy.as_view( model = Task, cbv_order_by = "created", url_delete_name = "tasks:delete", url_update_name = "tasks:update", url_create_name = "tasks:create", url_list_name = "tasks:list", url_detail_name = "tasks:detail", template_name = "cbv/ListViewCustom.html", ), name = 'list' ), url(r'^create$', TaskCreate.as_view( model=Task, success_url = "tasks:list", url_name = "tasks:create", template_name = "cbv/CreateViewCustom.html", form_class = TaskForm, ), name='create'
from customers.cbv_base.DeleteView import DeleteViewCustom from customers.cbv_base.UpdateView import UpdateViewCustom from customers.cbv_base.ListView import ListViewCustomOrderBy from customers.cbv_base.DetailView import DetailViewCustom from .cbv import UserCreate from .models import UserProfile from .forms import UserForm, UserFormNoPassw from .views import detail, repartition_project, export_csv, repartition_temps urlpatterns = [ url(r'^(list)?$', ListViewCustomOrderBy.as_view(model=UserProfile, cbv_order_by="first_name", url_delete_name="users:delete", url_update_name="users:update", url_create_name="users:create", url_list_name="users:list", url_detail_name="users:detail", template_name="cbv/ListViewCustom.html"), name='list'), url(r'^create$', UserCreate.as_view(model=UserProfile, success_url="users:list", url_name="users:create", form_class=UserForm, template_name="cbv/CreateViewCustom.html"), name='create'), url(r'^update-(?P<pk>\d+)$', UpdateViewCustom.as_view(model=UserProfile, success_url="users:list", url_name="users:update",
from customers.cbv_base.CreateView import CreateViewCustom from customers.cbv_base.DeleteView import DeleteViewCustom from customers.cbv_base.UpdateView import UpdateViewCustom from customers.cbv_base.ListView import ListViewCustomOrderBy from customers.cbv_base.DetailView import DetailViewCustom from .models import Project from .views import detail # Faire une liste où sont affichées les dernières tâches effectuées de chaque utilisateur urlpatterns = [ url(r'^(list)?$', ListViewCustomOrderBy.as_view(model=Project, cbv_order_by="name", url_delete_name="projects:delete", url_update_name="projects:update", url_create_name="projects:create", url_list_name="projects:list", url_detail_name="projects:detail", template_name="cbv/ListViewCustom.html"), name='list'), url(r'^create$', CreateViewCustom.as_view(model=Project, success_url="projects:list", url_name="projects:create", template_name="cbv/CreateViewCustom.html", fields={ 'name', 'customer', }), name='create'), url(r'^update-(?P<pk>\d+)$',