Package: django-autoreports
ContentsAutoreportsInstallationIn your settings.pyIn your urls.pyMedia filesIn the admin site (from Advanced usage)Basic usageAdvanced usageQuick reportAdvanced reportWizard reportReportsConfigurationDevelopment0.8.60.8.50.8.40.8.30.8.20.8.10.8.00.7.90.7.80.7.70.7.60.7.50.7.40.7.30.7.20.7.10.7.00.6.1AutoreportsAutoreports is a Django application that lets you create reports in very
Django Admin listingInstallationIn your settings.pyINSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',

    #.....................#

    'autoreports',
)In your urls.pyurlpatterns = patterns('',

    #...#

    (r'^autoreports/', include('autoreports.urls')),

    #...#
)Media filesLink the media files in your project media directorycd {{ MEDIA_ROOT }}
ln -s {{ AUTOREPORTS_FORM_PATH }}media/ autoreportsIn the admin site (from Advanced usage)Redefine ‘admin/change_list.html’ templates as follows{% load adminmedia admin_list i18n autoreports_tags %} {# add auto_reports_tags #}

#...#

{% block object-tools %}
  {% if has_add_permission %}
    <ul class="object-tools">
      <li>
        <a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">
          {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
        </a>
      </li>
      {% autoreports_admin %} {# add this stuff #}
    </ul>
  {% endif %}
{% endblock %}

#...#By default it will takes ‘list_display’ fields to export in CSV.
You can redefine it in every model admin you want:from autoreports.admin import ReportAdmin

 #...#

class FooModelAdmin(ReportAdmin, admin.ModelAdmin):
    passBasic usageYou have to api, and you can export to CSV each models./autoreports/app_label/module_name/
/autoreports/app_label/module_name/?filter1=value1Advanced usageYou have for each change list 4 new actions:Quick reportReport to csv the same that you see in the changelist. Works the filters and the searcherAdvanced reportYou have a form to filter. You can customizer this form.class FooModelAdmin(ReportAdmin, admin.ModelAdmin):
   report_filter_fields = ('description', 'category', ...)
   report_display_fields = ('name', 'description',  ...)If you don’t define this attributes, report_filter_fields and report_display_fields have the value of list_displayWizard reportYou can create a new “Advanced reports”, with this wizardReportsA list of “Advanced reports” thet you created with the wizardYou can have this functionality in the public view, if you registry some Model:
To access /autoreports/.from autoreports.registry import report_registry
from autoreports.api import ReportApi

#...#

class ModelApi(ReportApi):
   category = 'contrato'
   category_verbosename = 'Contrato'


report_registry.register_api(Model, ModelApi)ConfigurationYou can set some settings and autoreports adapt itself:AUTOREPORTS_BASE_TEMPLATE = ‘base.html’ # Indicate of the base templateAUTOREPORTS_FUNCTIONS = True  # If you want that the funcions can choose in the wizardAUTOREPORTS_INITIAL = True # If you want that the advanced forms have to default the initial valuesAUTOREPORTS_I18N = False # If you want have the forms (that you created with the wizard) in various languagesAUTOREPORTS_SUBFIX = True # If you want that in the filter set the filter bracketsAUTOREPORTS_ADAPTOR = {‘datetime’: ‘myappreport.fields.DateTimeFieldReportField’} # If you want change some adaptorAUTOREPORTS_WIZARDFIELD = ‘myappreport.wizards.MyWizardField’ # If you want change the WizardFieldAUTOREPORTS_USE_CMSUTILS = True # If autoreports should use cmsutils packageDevelopmentYou can get the last bleeding edge version of autoreports by doing a clone
of its git repository:git clone https://github.com/Yaco-Sistemas/django-autoreports.git0.8.6Fixed error: Add README.rst in MANIFESTFixed error: Add media in MANIFESTFixed error when the language names (in django settings) are unicodes0.8.5Removed cmsutils dependence. Now is an optional package.0.8.4Removed error in en_US systemDisplay fields can contains a function instead0.8.3Fixes datetime adaptor0.8.2Sortable fields0.8.1Spanish translationsFixes some littles errors0.8.0Wizard in the public viewAdvanced reports in the public viewFixes some errorsMore versatile the apiAdded the authors0.7.9Fixes some errors0.7.8Possibility of change the widgets (alpha)Layout of the warning  when you use a functionFixes some errorsUsabilityMore versatile the api0.7.7It be able to create searching filters joining various fields including transmeta fieldsFixes some errorsMore versatile the api0.7.6Warning (without layout) when you use a functionIt be able to create searching filters joining various fieldsMore versatile the api0.7.5Fixed some details of layout0.7.4Fixed a error with nginx/uwsgi deployment0.7.3More compatible with python 2.50.7.2More versatile the api0.7.1Removed error in the name of functionsRemoved error in the values of choicesRemoved error help_text and label with AUTOREPORTS_I18N = True[Wizard] Removed error of the field to inheritance[Wizard] Removed error of the field tree infinite0.7.0Code cleanupUsability in the wizardMore funcionality in the APIA test projectRemove cmsutils dependenceFixes0.6.1Fixed an issue when used in Django 1.3