Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Usability and performance improvements #4

Merged
merged 3 commits into from
Nov 2, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 22 additions & 9 deletions HISTORY
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
4 changes: 2 additions & 2 deletions simplegallery/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = (0, 13, 'final', 0)
__version__ = '0.13'
VERSION = (0, 14, 'final', 0)
__version__ = '0.14'
4 changes: 3 additions & 1 deletion simplegallery/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
MultilingualInlineModelForm
)
from simplegallery.models import Gallery, Image
from filer.models import Folder


def sync_folder(modeladmin, request, queryset):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion simplegallery/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down