diff --git a/users/__pycache__/views.cpython-38.pyc b/users/__pycache__/views.cpython-38.pyc index 863e27d..5ba4263 100644 Binary files a/users/__pycache__/views.cpython-38.pyc and b/users/__pycache__/views.cpython-38.pyc differ diff --git a/users/templates/users/register_SAVE.html b/users/templates/users/register_SAVE.html index 7b3ff1b..90cc24d 100644 --- a/users/templates/users/register_SAVE.html +++ b/users/templates/users/register_SAVE.html @@ -17,7 +17,7 @@ {{ form|crispy }}
- +
diff --git a/users/views.py b/users/views.py index 368a230..c8ac224 100644 --- a/users/views.py +++ b/users/views.py @@ -71,7 +71,7 @@ def dashboard(request): # Loading only user same agency # Change context and return for template-data # # Get all Users of the Same Agency as logged user - standards_of_agency = Standards.objects.filter(agency__pk=request.user.profile.agency.pk).filter(public=True).order_by('-created_standard_date')[:5] + standards_of_agency = Standards.objects.filter(agency__pk=request.user.profile.agency.pk).filter(public=True).order_by('-last_modified_on')[:5] filterdate = datetime.now() news = News.objects.filter(agency__pk=request.user.profile.agency.pk).filter(go_online_on__lt=filterdate).filter(go_offline_on__gt=filterdate).order_by('-go_online_on')[:4]