# Path: core/models.py
# def _get_file_path(instance, filename):
#     def age(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def documentation_correct(self):
#     def __str__(self):
# class Person(models.Model):
#     class Meta:
# class Recipient(models.Model):
#     class Meta:
# class Volunteer(models.Model):
#     class Meta:
# class Custodian(models.Model):
#     class Meta:
# class Project(models.Model):
#     class Meta:
# class Group(models.Model):
#     class Meta:
# class Event(models.Model):
#     class Meta:
# class Enrolment(models.Model):
#     class Meta:
# class Membership(models.Model):
#     class Meta:
# class Member(models.Model):
#     class Meta:
#     CATEGORIES = [
#         ('child', _('Infantil')),
#         ('juvenile', _('Juvenil')),
#     ]
#     COURSES = [
#         ('4EI', _('4 Educacion Infantil')),
#         ('5EI', _('5 Educacion Infantil')),
#         ('6EI', _('6 Educacion Infantil')),
#         ('1EP', _('1 Educacion Primaria')),
#         ('2EP', _('2 Educacion Primaria')),
#         ('3EP', _('3 Educacion Primaria')),
#         ('4EP', _('4 Educacion Primaria')),
#         ('5EP', _('5 Educacion Primaria')),
#         ('6EP', _('6 Educacion Primaria')),
#         ('1ESO', _('1 Educación Secundaria Obligatoria')),
#         ('2ESO', _('2 Educación Secundaria Obligatoria')),
#         ('3ESO', _('3 Educación Secundaria Obligatoria')),
#         ('4ESO', _('4 Educación Secundaria Obligatoria')),
#         ('1BACH', _('1 Bachillerato')),
#         ('2BACH', _('2 Bachillerato')),
#         ('FP', _('Formación Profesional')),
#         ('CARRERA', _('Carrera Universitaria')),
#     ]
#     CATEGORIES = [
#         ('father', _('Padre')),
#         ('mother', _('Madre')),
#         ('legal', _('Tutor')),
#     ]
#     CATEGORY = [
#         ('child', _('Infantil')),
#         ('juvenile', _('Juvenil')),
#         ('volunteer', _('Voluntario')),
#         ('contributor', _('Colaborador')),
#         ('family', _('Familiar')),
#     ]


from collections import OrderedDict as odict
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.views import LoginView, LogoutView
from django.contrib.messages.views import SuccessMessageMixin
from django.core.urlresolvers import reverse_lazy
from django.db.models import ProtectedError
from django.http import HttpResponseRedirect, JsonResponse
from django.shortcuts import redirect, render, reverse
from django.utils.text import slugify
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy
from django.views import generic
from django_filters.views import FilterView
from core import models
from . import filters, forms
            #    Option(_('Detalle socio'), None, menu=self),
            # ),
            # “””
            # Menu(
            #    'Grupos',
            #    Option(_('Grupos'), 'group-list', menu=self),
            #    Option(_('Detalle grupo'), None, menu=self),
            # ),
            # Menu(
            #    'Proyectos',
            #    Option(_('Proyectos'), 'project-list', menu=self),
            #    Option(_('Detalle proyecto'), None, menu=self),
            # ),
            Menu(
                'Actividades',
                Option(_('Actividades'), 'event-list', menu=self),
                Option(_('Detalle actividad'), None, menu=self),
            ),
            Menu(
                'Otros',
                Option(_('Nuevo socio individual'), 'basicformnewperson', menu=self),
                Option(_('Nueva familia'), 'basicformnewfamily', menu=self),
            ),
        ]

    def __iter__(self):
        return iter(self.get_options())


def missing_doc(request):

# Path: core/models.py
# def _get_file_path(instance, filename):
#     def age(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def documentation_correct(self):
#     def __str__(self):
# class Person(models.Model):
#     class Meta:
# class Recipient(models.Model):
#     class Meta:
# class Volunteer(models.Model):
#     class Meta:
# class Custodian(models.Model):
#     class Meta:
# class Project(models.Model):
#     class Meta:
# class Group(models.Model):
#     class Meta:
# class Event(models.Model):
#     class Meta:
# class Enrolment(models.Model):
#     class Meta:
# class Membership(models.Model):
#     class Meta:
# class Member(models.Model):
#     class Meta:
#     CATEGORIES = [
#         ('child', _('Infantil')),
#         ('juvenile', _('Juvenil')),
#     ]
#     COURSES = [
#         ('4EI', _('4 Educacion Infantil')),
#         ('5EI', _('5 Educacion Infantil')),
#         ('6EI', _('6 Educacion Infantil')),
#         ('1EP', _('1 Educacion Primaria')),
#         ('2EP', _('2 Educacion Primaria')),
#         ('3EP', _('3 Educacion Primaria')),
#         ('4EP', _('4 Educacion Primaria')),
#         ('5EP', _('5 Educacion Primaria')),
#         ('6EP', _('6 Educacion Primaria')),
#         ('1ESO', _('1 Educación Secundaria Obligatoria')),
#         ('2ESO', _('2 Educación Secundaria Obligatoria')),
#         ('3ESO', _('3 Educación Secundaria Obligatoria')),
#         ('4ESO', _('4 Educación Secundaria Obligatoria')),
#         ('1BACH', _('1 Bachillerato')),
#         ('2BACH', _('2 Bachillerato')),
#         ('FP', _('Formación Profesional')),
#         ('CARRERA', _('Carrera Universitaria')),
#     ]
#     CATEGORIES = [
#         ('father', _('Padre')),
#         ('mother', _('Madre')),
#         ('legal', _('Tutor')),
#     ]
#     CATEGORY = [
#         ('child', _('Infantil')),
#         ('juvenile', _('Juvenil')),
#         ('volunteer', _('Voluntario')),
#         ('contributor', _('Colaborador')),
#         ('family', _('Familiar')),
#     ]


# Path: webapp/views.py
from collections import OrderedDict as odict
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.views import LoginView, LogoutView
from django.contrib.messages.views import SuccessMessageMixin
from django.core.urlresolvers import reverse_lazy
from django.db.models import ProtectedError
from django.http import HttpResponseRedirect, JsonResponse
from django.shortcuts import redirect, render, reverse
from django.utils.text import slugify
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy
from django.views import generic
from django_filters.views import FilterView
from core import models
from . import filters, forms

            #    Option(_('Detalle socio'), None, menu=self),
            # ),
            # “””
            # Menu(
            #    'Grupos',
            #    Option(_('Grupos'), 'group-list', menu=self),
            #    Option(_('Detalle grupo'), None, menu=self),
            # ),
            # Menu(
            #    'Proyectos',
            #    Option(_('Proyectos'), 'project-list', menu=self),
            #    Option(_('Detalle proyecto'), None, menu=self),
            # ),
            Menu(
                'Actividades',
                Option(_('Actividades'), 'event-list', menu=self),
                Option(_('Detalle actividad'), None, menu=self),
            ),
            Menu(
                'Otros',
                Option(_('Nuevo socio individual'), 'basicformnewperson', menu=self),
                Option(_('Nueva familia'), 'basicformnewfamily', menu=self),
            ),
        ]

    def __iter__(self):
        return iter(self.get_options())


def missing_doc(request):

    pending = models.Member.objects.exclude(id_card_status='si')