Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Usability and performance improvements #4

Merged
merged 3 commits into from

2 participants

This page is out of date. Refresh to see the latest.
View
31 HISTORY
@@ -1,11 +1,23 @@
+0.14
+====
+
+* Made the select widget for folder sync more usable for large folder trees by
+ ordering and indenting them according to the folder-tree structure
+* added a ``select_related`` to the gallery plugin, which saves a query per
+ image.
+* fixed rst markup in this document.
+
0.13
====
-* its now possible to link a gallery to a django-filer folder, so it will one-way sync with the folder (changes in simplegallery are ignored, all changes from filer will be accepted)
+* its now possible to link a gallery to a django-filer folder, so it will
+ one-way sync with the folder (changes in simplegallery are ignored, all
+ changes from filer will be accepted)
0.12
====
-* groups is no longer a mandatory field
+* ``groups`` is no longer a mandatory field
+
Backward incompatible changes!
* css has changed
@@ -15,15 +27,16 @@ Backward incompatible changes!
========
Backwards incompatible changes!
- * added django-sekizai dependency
- * added django-tinymce dependency
- * default stylesheets and html structure changed, files renamed
-
-Added detail change view for images in Gallery
-No more `null=True` on `CharFields` and `TextFields` (used `blank=True, default=''` instead)
+* added ``django-sekizai`` dependency
+* added ``django-tinymce`` dependency
+* default stylesheets and html structure changed, files renamed
+* Added detail change view for images in Gallery
+* No more ``null=True`` on ``CharFields`` and ``TextFields`` (used
+ ``blank=True, default=''`` instead)
0.10.0a
=======
-Changed image fields from image_filer to filer (backwards incompatible change)
+Changed image fields from ``image_filer`` to ``filer`` (backwards incompatible
+change)
View
4 simplegallery/__init__.py
@@ -1,2 +1,2 @@
-VERSION = (0, 13, 'final', 0)
-__version__ = '0.13'
+VERSION = (0, 14, 'final', 0)
+__version__ = '0.14'
View
4 simplegallery/admin.py
@@ -10,6 +10,7 @@
MultilingualInlineModelForm
)
from simplegallery.models import Gallery, Image
+from filer.models import Folder
def sync_folder(modeladmin, request, queryset):
@@ -63,6 +64,7 @@ def __init__(self, *args, **kwargs):
initial = kwargs.get('initial') or {}
initial.update({'groups': [g.pk for g in self.current_request.user.groups.all()] + base_groups})
kwargs['initial'] = initial
+ self.base_fields['folder'].choices = ((f.pk, mark_safe(f.level*'  ' + unicode(f))) for f in Folder.tree.all())
super(GalleryAdminForm, self).__init__(*args, **kwargs)
def clean_groups(self):
@@ -169,4 +171,4 @@ def get_model_perms(self, request):
}
admin.site.register(Gallery, GalleryAdmin)
-admin.site.register(Image, ImageDetailAdmin)
+admin.site.register(Image, ImageDetailAdmin)
View
2  simplegallery/cms_plugins.py
@@ -66,7 +66,7 @@ class CarouselFeaturePlugin(CMSPluginBase):
def render(self, context, instance, placeholder):
context.update({
'instance': instance,
- 'images': instance.images.all(),
+ 'images': instance.images.select_related('image',).all(),
'image_size': get_image_size(context, instance),
'placeholder': placeholder,
})
Something went wrong with that request. Please try again.