Sortierreihenfolge bei Standards Dashboard und Rgister-Seite Agenturname auf required
This commit is contained in:
parent
196ad6fcba
commit
b7b554d870
Binary file not shown.
|
|
@ -17,7 +17,7 @@
|
|||
{{ form|crispy }}
|
||||
<div class="form-group">
|
||||
<label for="pwd">Agenturname</label>
|
||||
<input type="text" name="agency_name" class="form-control" id="agency_name" required>
|
||||
<input type="text" name="agency_name" class="form-control" id="agency_name" required="true">
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="form-group" >
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue