--- a/src/metadatacomposer/__init__.py Mon Jun 24 11:18:35 2013 +0200
+++ b/src/metadatacomposer/__init__.py Mon Jun 24 11:50:41 2013 +0200
@@ -1,4 +1,4 @@
-VERSION = (0, 1, 9, "final", 0)
+VERSION = (0, 1, 10, "final", 0)
def get_version():
--- a/src/metadatacomposer/views.py Mon Jun 24 11:18:35 2013 +0200
+++ b/src/metadatacomposer/views.py Mon Jun 24 11:50:41 2013 +0200
@@ -51,7 +51,7 @@
def get(self, request, branding="iri", **kwargs):
self.branding = branding
- projects = Project.safe_objects.filter(owner=request.user).order_by('-modification_date')[:6]
+ projects = Project.safe_objects.filter(owner=request.user).exclude(title__startswith='front').order_by('-modification_date')[:6]
images = Image.objects.order_by('-modification_date')[:6]
contents = Content.safe_objects.order_by('-update_date')[:6]
@@ -75,7 +75,7 @@
self.branding = branding
page = request.GET.get("page") or 1
- projects = Project.safe_objects.prefetch_related("contents").order_by('-modification_date').filter(owner=request.user)
+ projects = Project.safe_objects.prefetch_related("contents").exclude(title__startswith='front').order_by('-modification_date').filter(owner=request.user)
nb = getattr(settings, 'METADATACOMPOSER_ELEMENTS_PER_PAGE', 9)
if page=="x":
nb = projects.count()