This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Django Template tag for building alphabetical index

Link to repository: https://github.com/Arpaso/alphabetic-simple

Builds alpabetic index to navigate through collection sorted by firstletter. Supports english and russian groups of alphabets.

Usage

view.py:

from django.views.generic.list_detail import object_list
from alphabetic.utils import alphabetic_setup
from .models import MyModel

    def myview(request):
        ...
        queryset = MyModel.objects.all()
        return object_list(request, alphabetic_setup(request, queryset, 'last_name'), template_name=template)

template.html:

{% show_alphabetic_filter %}

alphabetic_setup(request, queryset, ‘last_name’) - returns sorted queryset in alphabetical order by firstletter of the attribute name, e.g. last_name or whatever attribute of the model you specified.

show_alphabetic_filter - template tag shows clickable alphabet in the template.

Clicking on the letter will produce GET request to the current url with a tail ?firstletter=X, where X is the clicked letter.

Written by the development team of Arpaso company: http://arpaso.com

Release History

Release History

0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
alphabetic-simple-0.2.tar.gz (6.4 kB) Copy SHA256 Checksum SHA256 Source Aug 8, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting