Skip to content

Commit

Permalink
conflicts resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
bmugwe committed Jun 21, 2024
2 parents ac9cf14 + 7683bc8 commit 669e9f2
Show file tree
Hide file tree
Showing 246 changed files with 1,228 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cpims/settings.py
.history/*
.pyc
__pycache__
__pycache__/*
*.pyc
migrations
requirements.txt
Expand Down
Binary file added cpims/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpims/__pycache__/emails.cpython-310.pyc
Binary file not shown.
Binary file added cpims/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file added cpims/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpims/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file added cpims/__pycache__/wsgi.cpython-310.pyc
Binary file not shown.
5 changes: 5 additions & 0 deletions cpims/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,13 @@
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'cpims_gok',
<<<<<<< HEAD
'USER': 'postgres',
'PASSWORD': 'test',
=======
'USER': 'cpimsdbuser',
'PASSWORD': 'Xaen!ee8',
>>>>>>> mobile_approval
'HOST': '127.0.0.1',
'PORT': '5432', }
}
Expand Down
Binary file added cpovc_access/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_access/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_access/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_access/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added cpovc_access/__pycache__/handlers.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_access/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_access/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_access/__pycache__/signals.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_access/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_afc/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_afc/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_afc/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_afc/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_afc/__pycache__/functions.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_afc/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_afc/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_afc/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_afc/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_api/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_api/__pycache__/serializers.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_api/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_api/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_auth/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_auth/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_auth/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_auth/__pycache__/decorators.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_auth/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_auth/__pycache__/functions.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_auth/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_auth/__pycache__/perms.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_auth/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_auth/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_ctip/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ctip/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ctip/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ctip/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ctip/__pycache__/functions.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ctip/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ctip/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ctip/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ctip/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_dashboard/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added cpovc_dashboard/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_dashboard/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_dashboard/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_forms/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_forms/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_forms/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_forms/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_forms/__pycache__/functions.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_forms/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_forms/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_forms/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_gis/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_gis/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_gis/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_gis/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_gis/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_gis/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_help/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_help/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_help/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_help/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_help/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_help/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_main/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_main/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_main/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_main/__pycache__/country.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_main/__pycache__/functions.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_main/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_main/__pycache__/utils.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_manage/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_manage/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_manage/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_manage/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added cpovc_manage/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_manage/__pycache__/params.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_manage/__pycache__/telegram.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_manage/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_manage/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_manage/__pycache__/vurugu.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
24 changes: 18 additions & 6 deletions cpovc_mobile/urls.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
from django.urls import path
from django.urls import path, re_path
from cpovc_mobile import views

# This should contain urls related to Mobile App endpoints ONLY

urlpatterns = [
path('', views.ovc_mobile_home, name='ovc_mobile_home'),
path("", views.ovc_mobile_home, name="ovc_mobile_home"),
# Set up
path('caseload/', views.CaseloadViewSet.as_view()),
path("caseload/", views.CaseloadViewSet.as_view()),
path('settings/', views.MobileUser.as_view()),
path('metadata/', views.MobileMetadata.as_view()),
# Forms
path('crs/', views.ovc_mobile_crs, name='ovc_mobile_crs'),
path("crs/", views.ovc_mobile_crs, name="ovc_mobile_crs"),
path('forms/', views.ovc_mobile_forms, name='ovc_mobile_forms'),
# Follow ups
path('follow_up/', views.ovc_mobile_follow_up, name='ovc_mobile_follow_up'),
path("follow_up/", views.ovc_mobile_follow_up, name="ovc_mobile_follow_up"),


# Others
path('notifications/', views.MobileNotifications.as_view()),
]
# Approval urls UI
path("mobile-approval/", views.mobile_app_home, name="mobile_app_home"),
re_path(
r"^crs/view/(?P<id>[0-9a-f]{8}-[0-9a-f]{4}-1[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12})/$",
views.view_mobile_case_record_sheet,
name="view_mobile_case_record_sheet",
),
# re_path(
# r"^crs/view/(?P<id>\w+)/$",
# views.view_mobile_case_record_sheet,
# name="view_mobile_case_record_sheet",
# ),
]
251 changes: 241 additions & 10 deletions cpovc_mobile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
from datetime import datetime
from rest_framework.decorators import api_view
from rest_framework.response import Response
from django.urls import reverse
from django.http import HttpResponseRedirect, HttpResponse, JsonResponse
from django.contrib import messages
from rest_framework import viewsets, generics, status
from django.core.paginator import Paginator

Expand Down Expand Up @@ -47,13 +50,25 @@ def save_person(case_id, person_type, req_data):
print(person_type, serializer.errors)
except Exception as e:
print('Error saving data - %s' % str(e))
pass
passfrom django.shortcuts import render, redirect
from cpovc_forms.views import forms_registry

from django.contrib.auth.decorators import login_required

from cpovc_registry.models import (AppUser, RegPerson, RegPersonsSiblings, RegPersonsGuardians, )
from cpovc_forms.models import (OVCEconomicStatus, OVCFamilyStatus, OVCFriends, OVCHobbies,OVCMedical, OVCCaseCategory,
OVCNeeds, OVCReferral, OVCMedicalSubconditions, OVCCaseSubCategory,OVCCaseLocation, OvcCasePersons,)

@api_view(['POST', 'GET'])
from cpovc_main.functions import (get_dict, translate)


@api_view(["POST", "GET"])
def ovc_mobile_home(request):
"""Method to handle Mobile endpoints."""
try:
return(Response({'message':'Method not allowed'}, status=status.HTTP_400_BAD_REQUEST))
return Response(
{"message": "Method not allowed"}, status=status.HTTP_400_BAD_REQUEST
)
except Exception as e:
raise e
else:
Expand All @@ -69,13 +84,12 @@ def get_queryset(self):
for the currently authenticated user.
"""
user = self.request.user
cases = OVCCaseGeo.objects.filter(is_void=False).values('case_id_id')[:10]
case_obj = OVCCaseRecord.objects.filter(
case_id__in=cases, case_status='ACTIVE')
cases = OVCCaseGeo.objects.filter(is_void=False).values("case_id_id")[:10]
case_obj = OVCCaseRecord.objects.filter(case_id__in=cases, case_status="ACTIVE")
return case_obj


# @api_view(['POST', 'PUT', 'PATCH', 'DELETE'])
# @api_view(["POST", 'PUT', 'PATCH', 'DELETE'])
# def ovc_mobile_crs(request):
# """Method to handle Mobile CRS endpoints."""
# try:
Expand Down Expand Up @@ -260,26 +274,243 @@ def ovc_mobile_follow_up(request):
try:
results = {"message": "Saved Successfull"}

return(Response(results, status=201 ))
return Response(results, status=201)
except Exception as e:
raise e
else:
pass


@api_view(['POST', 'PUT', 'PATCH', 'DELETE'])
@api_view(["POST", 'PUT', 'PATCH', 'DELETE'])
def ovc_mobile_forms(request):
"""Method to handle Mobile CRS endpoints."""
try:
results = {"message": "Saved Successfull"}

return(Response(results, status=201 ))
return Response(results, status=201)
except Exception as e:
raise e
else:
pass


# Mobile approval loading
@login_required
def mobile_app_home(request):
print(f"user id id {request.user.id}")
context = {
"cases": [
{
"id": "749fc18f2cbf11efb24922a3499bfe31",
"care_id": "749fc18f2cbf11efb24922a3499bfe33",
"case": "CCO/47/287/5/29/4423/2024",
"first_name": "Boniface",
"case_date": "2024-01-01",
"case_level": 2,
},
{
"id": "749fc18f2cbf11efb24922a3499bfe32",
"care_id": "2323",
"case": "CCO/47/287/5/29/4425/2024",
"first_name": "John",
"case_date": "2024-01-01",
"case_level": 2,
},
{
"id": "749fc18f2cbf11efb24922a3499bfe33",
"care_id": "2323",
"case": "CCO/47/287/5/29/4426/2024",
"first_name": "Jane",
"case_date": "2024-01-01",
"case_level": 2,
},
{
"id": "749fc18f2cbf11efb24922a3499bfe33",
"care_id": "2323",
"case": "CCO/47/287/5/29/4427/2024",
"first_name": "Jude",
"case_date": "2024-01-01",
"case_level": 2,
},
]
}
return render(request, "mobile/home.html", context=context)


def view_mobile_case_record_sheet(request, id):
# csr_id = id
# print(f"CSR-ID: {csr_id}")
# context = {

# }
# return render(request, "mobile/preview_csr.html", context=context)
try:
"""Get Initial Data"""
# f = FormsLog.objects.get(form_id=id, is_void=False)
ovccr = OVCCaseRecord.objects.get(case_id=id, is_void=False)
person_id = int(ovccr.person_id)
# init_data = RegPerson.objects.filter(pk=person_id)
appuser = AppUser.objects.filter(pk=ovccr.created_by).first()
f = {'form_id': id}

# Get Siblings
init_data = RegPerson.objects.filter(pk=person_id)
reg_personsiblings = []

regpersonsiblings = RegPersonsSiblings.objects.filter(
child_person_id=person_id)
for regpersonsibling in regpersonsiblings:
reg_personsiblings.append(regpersonsibling.sibling_person)
init_data.siblingpersons = reg_personsiblings

reg_caregivers = []
caregivers = RegPersonsGuardians.objects.filter(
child_person_id=person_id)
for caregiver in caregivers:
caregiver_details = caregiver.guardian_person
setattr(caregiver_details, 'relation', caregiver.relationship)
reg_caregivers.append(caregiver_details)
init_data.caregivers = reg_caregivers

check_fields = ['sex_id',
'family_status_id',
'household_economics',
'mental_condition_id',
'mental_subcondition_id',
'physical_condition_id',
'physical_subcondition_id',
'other_condition_id',
'other_subcondition_id',
'case_reporter_id',
'perpetrator_status_id',
'relationship_type_id',
'perpetrator_id', 'risk_level_id',
'referral_destination_id',
'intervention_id',
'case_category_id', 'core_item_id',
'yesno_id', 'relationship_type_id',
'case_reporter_relationship_to_child',
'long_term_support_id',
'immediate_need_id']

vals = get_dict(field_name=check_fields)

ovcd = OVCEconomicStatus.objects.get(case_id=id, is_void=False)
ovcfam = OVCFamilyStatus.objects.filter(case_id=id, is_void=False)
ovccr = OVCCaseRecord.objects.get(case_id=id, is_void=False)
ovcgeo = OVCCaseGeo.objects.get(case_id=id, is_void=False)
ovcfrnds = OVCFriends.objects.filter(case_id=id, is_void=False)
ovchobs = OVCHobbies.objects.filter(case_id=id, is_void=False)
ovcmed = OVCMedical.objects.get(case_id=id, is_void=False)
ovcccats = OVCCaseCategory.objects.filter(case_id=id, is_void=False)
ovcneeds = OVCNeeds.objects.filter(case_id=id, is_void=False)
ovcrefa = OVCReferral.objects.filter(case_id=id, is_void=False)
perpetrators = OvcCasePersons.objects.filter(
case_id=id, person_type='PERP')
ovclocs = OVCCaseLocation.objects.filter(case_id=id, is_void=False)

# Retrieve Medical Subconditions
medical_id = ovcmed.medical_id
ovcphymeds = OVCMedicalSubconditions.objects.filter(
medical_id=medical_id, medical_condition='Physical', is_void=False)
ovcmentmeds = OVCMedicalSubconditions.objects.filter(
medical_id=medical_id, medical_condition='Mental', is_void=False)
ovcothermeds = OVCMedicalSubconditions.objects.filter(
medical_id=medical_id, medical_condition='Other', is_void=False)

# Get OVCCaseCategory
case_grouping_ids = []
jsonCategorysData = []
jsonSubCategorysData = []
str_jsonsubcategorydata = ''
resultsets = []
ovcccats = OVCCaseCategory.objects.filter(
case_id=id, is_void=False)
""" Get case_grouping_ids[] """
for ovcccat in ovcccats:
case_grouping_id = str(ovcccat.case_grouping_id)
if not case_grouping_id in case_grouping_ids:
case_grouping_ids.append(str(case_grouping_id))

""" Get Case Categories """
ovcccats2 = None
for case_grouping_id in case_grouping_ids:
ovcccats2 = OVCCaseCategory.objects.filter(
case_grouping_id=case_grouping_id)

for ovcccat in ovcccats2:
# OVCCaseSubCategory
ovccasesubcategorys = OVCCaseSubCategory.objects.filter(
case_grouping_id=case_grouping_id)
for ovccasesubcategory in ovccasesubcategorys:
jsonSubCategorysData.append(
translate(str(ovccasesubcategory.sub_category_id)))
str_jsonsubcategorydata = ','.join(jsonSubCategorysData)

jsonCategorysData.append({'case_category': ovcccat.case_category,
'case_subcategorys': str_jsonsubcategorydata,
'date_of_event': (ovcccat.date_of_event).strftime('%d-%b-%Y'),
'place_of_event': ovcccat.place_of_event,
'case_nature': ovcccat.case_nature,
'case_grouping_id': str(ovcccat.case_grouping_id)
})
jsonSubCategorysData = []

""" Create resultsets """
resultsets.append(jsonCategorysData)

# Get OVCReferral
jsonData2 = []
resultsets2 = []
referral_grouping_ids = []
""" Get referral_grouping_ids[] """
for reffs in ovcrefa:
referral_grouping_id = str(reffs.referral_grouping_id)
if not referral_grouping_id in referral_grouping_ids:
referral_grouping_ids.append(str(referral_grouping_id))
""" Get Referral Actors """
ovcrefa2 = None
for referral_grouping_id in referral_grouping_ids:
ovcrefa2 = OVCReferral.objects.filter(
referral_grouping_id=referral_grouping_id)
for ra in ovcrefa2:
jsonData2.append({'refferal_actor_type': translate(ra.refferal_actor_type),
'refferal_actor_specify': ra.refferal_actor_specify,
'refferal_to': translate(ra.refferal_to),
'referral_grouping_id': str(ra.referral_grouping_id)
})
resultsets2.append(jsonData2)

return render(request,
'mobile/preview_csr.html',
{'init_data': init_data,
'vals': vals, 'result': f,
'ovcd': ovcd,
'ovccr': ovccr,
'ovcgeo': ovcgeo,
'ovcfrnds': ovcfrnds,
'ovchobs': ovchobs,
'ovcmed': ovcmed,
'ovcphymeds': ovcphymeds,
'ovcmentmeds': ovcmentmeds,
'ovcothermeds': ovcothermeds,
'ovcneeds': ovcneeds,
'perpetrators': perpetrators,
'ovcfam': ovcfam,
'resultsets': resultsets,
'resultsets2': resultsets2,
'ovclocs': ovclocs.first(),
'app_user': appuser
})
except Exception as e:
msg = 'An error occured trying to view OVCCaseRecord - %s' % (str(e))
messages.add_message(request, messages.ERROR, msg)
redirect_url = reverse(forms_registry)
return HttpResponseRedirect(forms_registry)
# return render(request, "mobile/home.html", {})



class MobileUser(APIView):

serializer_class = MobileUserSerializer
Expand Down
Binary file added cpovc_ovc/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ovc/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ovc/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ovc/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ovc/__pycache__/functions.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ovc/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ovc/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_ovc/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_registry/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_registry/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_registry/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_registry/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added cpovc_registry/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_registry/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_registry/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_reports/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_reports/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_reports/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_reports/__pycache__/config.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_reports/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added cpovc_reports/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added cpovc_reports/__pycache__/queries.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added cpovc_reports/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_reports/__pycache__/utils.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_reports/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_settings/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_settings/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_settings/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_settings/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added cpovc_settings/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_settings/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_settings/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_stat_inst/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_stat_inst/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_stat_inst/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_stat_inst/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cpovc_stat_inst/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added cpovc_stat_inst/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions cpovc_stat_inst/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,11 @@
FPERM['FMSI037F'] = {0: [''], 1: ['CRU'], 2: ['CRU'], 3: ['RUD']}
FPERM['FMSI038F'] = {0: [''], 1: ['CRU'], 2: ['CRU'], 3: ['RUD']}

<<<<<<< HEAD
INSTM={}
=======

# missing
INSTM = {}
INSTM[''] = ['']
>>>>>>> mobile_approval
2 changes: 1 addition & 1 deletion cpovc_stat_inst/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from weasyprint import HTML

import barcode
from barcode import EAN13, Code128
# from barcode import EAN13, Code128
import segno

from .forms import (SIForm)
Expand Down
Binary file added notifications/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added notifications/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added notifications/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added notifications/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added notifications/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file added notifications/__pycache__/signals.cpython-310.pyc
Binary file not shown.
Binary file added notifications/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added notifications/__pycache__/utils.cpython-310.pyc
Binary file not shown.
Binary file added notifications/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@
</a>
</li>
{% if user.is_authenticated %}
<li class="dropdown">
<a href="{% url 'mobile_app_home' %}" id="mobile-approval" class="dropdown-toggle f-s-20">
<i class="fa fa-mobile"></i>
</a>
</li>

<li class="dropdown" id="session_status"></li>
<li class="dropdown navbar-user">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Expand Down
Loading

0 comments on commit 669e9f2

Please sign in to comment.