Skip to content
Permalink
8763a7b3ec
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (16 sloc) 679 Bytes
#-*- coding: utf-8 -*-
from django.urls import reverse
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.views import generic
from eoapublications.models import *
from .models import Catalogue
def index(request):
allseries = set(Publication.objects.values_list("Serie", flat=True))
Listofpublications = Publication.objects.filter(Published=True).order_by('-Number').order_by('Serie')
Content = {
'Listofpublications' : Listofpublications,
'allseries' : sorted(allseries),
'Series' : Series
}
return render(request, 'eoaseries/index.html', Content)