+
-
- {% for employee in employee_list %}
- -
-
-
-
-
-
-
-
-
-
- {{ employee.user.first_name }} "{{ employee.callsign }}" {{ employee.user.last_name }}
-
-
- {{ activity_dict|get_value:employee.primary_activity }}
-
-
- {{ activity_dict|get_value:employee.secondary_activity }}
-
-
-
-
-
- Status:
- {{ employee_dict|get_value:employee.type }}
-
-
-
- Hire Date:
- {{ employee.hire_date|date:"d M Y" }}
-
-
-
-
-
-
-
-
-
-
-
- {% endfor %}
-
+
+
- {% if no_account %}
-
-
+
+
+
Load More Members
+
+
+ {% if no_account %}
+
+
- {% endif %}
-
- {% if is_paginated %}
-
- {% endif %}
-
+
+ {% endif %}
{% endblock %}
+
+{% block script %}
+
+{% endblock %}
diff --git a/employees/views.py b/employees/views.py
index 77708b1..8c140a8 100644
--- a/employees/views.py
+++ b/employees/views.py
@@ -102,11 +102,9 @@ def get_context_data(self, **kwargs):
class EmployeeListView(ListView):
model = Employee
template_name = 'employees/employee_list.html'
- paginate_by = 10
- ordering = 'emp_no'
def get_queryset(self, *args, **kwargs):
- qs = Employee.objects.filter(type__in=["MEM", "AFF"])
+ qs = Employee.objects.exclude(type__in=["RET", "KIA"])
query = self.request.GET.get("q", None)
if query is not None:
qs = qs.filter(
@@ -148,7 +146,7 @@ def no_account(self):
qs = Employee.objects.filter(
user__exact=self.request.user
).filter(
- type__in=["MEM","AFF", "PRE", "SEC", "CFO"]
+ type__in=["MEM", "AFF", "PRE", "SEC", "CFO"]
)
if qs.count() == 0:
return True
diff --git a/purnkleen/settings/base.py b/purnkleen/settings/base.py
index f8da2ab..46754f9 100644
--- a/purnkleen/settings/base.py
+++ b/purnkleen/settings/base.py
@@ -167,7 +167,7 @@
'disable_existing_loggers': False,
'handlers': {
'file': {
- 'level': 'DEBUG',
+ 'level': 'ERROR',
'class': 'logging.FileHandler',
'filename': os.path.join(BASE_DIR, "pnk_debug.log"),
},
@@ -175,7 +175,7 @@
'loggers': {
'django': {
'handlers': ['file'],
- 'level': 'DEBUG',
+ 'level': 'ERROR',
'propagate': True,
},
},
diff --git a/purnkleen/settings/local.py b/purnkleen/settings/local.py
index f8da2ab..46754f9 100644
--- a/purnkleen/settings/local.py
+++ b/purnkleen/settings/local.py
@@ -167,7 +167,7 @@
'disable_existing_loggers': False,
'handlers': {
'file': {
- 'level': 'DEBUG',
+ 'level': 'ERROR',
'class': 'logging.FileHandler',
'filename': os.path.join(BASE_DIR, "pnk_debug.log"),
},
@@ -175,7 +175,7 @@
'loggers': {
'django': {
'handlers': ['file'],
- 'level': 'DEBUG',
+ 'level': 'ERROR',
'propagate': True,
},
},
diff --git a/purnkleen/settings/production.py b/purnkleen/settings/production.py
index b69bcfd..d28b429 100644
--- a/purnkleen/settings/production.py
+++ b/purnkleen/settings/production.py
@@ -27,8 +27,6 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
-CSRF_COOKIE_SECURE = True
-SESSION_COOKIE_SECURE = True
ALLOWED_HOSTS = ['www.purnkleen.com', 'purnkleen.com']
diff --git a/templates/base2.html b/templates/base2.html
index a40b07a..5129ebc 100644
--- a/templates/base2.html
+++ b/templates/base2.html
@@ -132,7 +132,6 @@
-
{% block body %}
{% block container %}{% endblock %}
{% block content %}{% endblock %}
@@ -194,7 +193,10 @@
+
+
+{% block script %}{% endblock %}