<commit_before>===========================
    django-admin-utils
===========================

Utility code and patterns. Tested against Python 2.7, 2.6 and Django 1.3, 1.4, 1.5, 1.6 (trunk).

.. image:: https://secure.travis-ci.org/ionelmc/django-admin-utils.png
    :alt: Build Status
    :target: http://travis-ci.org/ionelmc/django-admin-utils

.. image:: https://coveralls.io/repos/ionelmc/django-admin-utils/badge.png?branch=master
    :alt: Coverage Status
    :target: https://coveralls.io/r/ionelmc/django-admin-utils

.. image:: https://badge.fury.io/py/django-admin-utils.png
    :alt: PYPI Package
    :target: https://pypi.python.org/pypi/django-admin-utils

.. image:: https://d2weczhvl823v0.cloudfront.net/ionelmc/django-admin-utils/trend.png
   :alt: Bitdeli badge
   :target: https://bitdeli.com/free

Terse admin.py
==============

::

    from django.contrib import admin
    from admin_utils import register, inline

    from .models import MyModel, OtherModel

    @register(MyModel)
    class MyModelAdmin(admin.ModelAdmin):
        inlines = inline(OtherModel),

If you want custom admin sites::

    customsite = admin.AdminSite()

    @register(MyModel, site=customsite)
    class MyModelAdmin(admin.ModelAdmin):
        inlines = inline(OherModel),


Mock admin (mount your views in admin using model wrappers)<commit_msg>Update readme.<commit_after>===========================
    django-admin-utils
===========================

Utility code and patterns. Tested against Python 2.7, 2.6 and Django 1.3, 1.4, 1.5, 1.6 (trunk).

.. image:: https://secure.travis-ci.org/ionelmc/django-admin-utils.png
    :alt: Build Status
    :target: http://travis-ci.org/ionelmc/django-admin-utils

.. image:: https://coveralls.io/repos/ionelmc/django-admin-utils/badge.png?branch=master
    :alt: Coverage Status
    :target: https://coveralls.io/r/ionelmc/django-admin-utils

.. image:: https://badge.fury.io/py/django-admin-utils.png
    :alt: PYPI Package
    :target: https://pypi.python.org/pypi/django-admin-utils

Requirements
============

:OS: Any
:Runtime: Python 2.6, 2.7, 3.2, 3.3 or PyPy
:Packages: Django>=1.1 (including 1.7)

Terse admin.py
==============

::

    from django.contrib import admin
    from admin_utils import register, inline

    from .models import MyModel, OtherModel

    @register(MyModel)
    class MyModelAdmin(admin.ModelAdmin):
        inlines = inline(OtherModel),

If you want custom admin sites::

    customsite = admin.AdminSite()

    @register(MyModel, site=customsite)
    class MyModelAdmin(admin.ModelAdmin):
        inlines = inline(OherModel),


Mock admin (mount your views in admin using model wrappers)
{'fraction_non_alphanumeric': 0.17902621722846443, 'fraction_numerical': 0.015355805243445693, 'mean_word_length': 3.6695804195804196, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '588902', 'n_tokens_mistral': 912, 'n_tokens_neox': 864, 'n_words': 190}