Commit a0ab13a7 authored by Hamza Dely's avatar Hamza Dely
Browse files

[views] Déplacement du NoteMixin vers note_kfet/views

parent a6e978f2
......@@ -18,8 +18,8 @@ from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMix
from django_filters.views import FilterView
from note_kfet.mixins import NoteMixin
from note_kfet.droits import D, Acl
from note_kfet.views.mixins import NoteMixin
from comptes.models import Adherent
......
......@@ -35,7 +35,7 @@ from rest_framework.response import Response
from rest_framework.decorators import list_route, detail_route
from note_kfet.droits import Acl, D
from note_kfet.mixins import NoteMixin
from note_kfet.views.mixins import NoteMixin
from comptes.models import (
Section, Alias, Droit, Accreditation, Adhesion, Adherent,
......
......@@ -14,7 +14,7 @@ from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMix
from django.contrib.contenttypes.models import ContentType
from note_kfet.droits import D, Acl
from note_kfet.mixins import NoteMixin
from note_kfet.views.mixins import NoteMixin
from consos.models import Note, Transaction, Bouton
from consos.forms import BoutonConsoForm, CreditConsoForm, RetraitConsoForm, TransfertConsoForm
......
......@@ -5,11 +5,8 @@
from django.conf import settings
from django.http.response import HttpResponse
from django.views.generic.base import View
from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin
from PIL import Image
### Vue pour servir les images
class NginxMediaView(LoginRequiredMixin, View):
......@@ -18,6 +15,7 @@ class NginxMediaView(LoginRequiredMixin, View):
en utilisant la vitesse du reverse proxy.
"""
def get(self, request, *args, **kwargs):
from PIL import Image
response = HttpResponse()
media_type = kwargs.get('type', '')
media_id = kwargs.get('id', '')
......
"""
Mixins pour les vues de la Note Kfet.
"""
import uuid
import base64
import binascii
from collections import OrderedDict
from django.forms import BaseFormSet, ValidationError
from django.core.files.base import ContentFile
from django.core.validators import EMPTY_VALUES
from django.forms import BaseFormSet
class NoteMixin(object):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment