Skip to main content

Django application that adds other useful fields to Django inplace edit

Project description

Inplace Edit Form Extra Fields

Information

Inplace Edit Form Extra Field is a Django application that adds other useful fields.

It is distributed under the terms of the GNU Lesser General Public License <http://www.gnu.org/licenses/lgpl.html>

Requeriments

And other eggs, but it is important: If you want to use one of the fields, you do not have to install its requirements

Installation

After installing django inplace edit egg

In your settings.py

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    #.....................#
    'inplaceeditform',
    'inplaceeditform_extra_fields',
)

If you want overwrite the adaptors for any case in your project:

ADAPTOR_INPLACEEDIT = {'textarea': 'inplaceeditform_extra_fields.fields.AdaptorTinyMCEField',
                       'image': 'inplaceeditform_extra_fields.fields.AdaptorImageThumbnailField',
                       'fk': 'inplaceeditform_extra_fields.fields.AdaptorAutoCompleteForeingKeyField',
                       'm2mcomma': 'inplaceeditform_extra_fields.fields.AdaptorAutoCompleteManyToManyField'}

If you want, you can register these fields in your settings, with other keys:

ADAPTOR_INPLACEEDIT = {'auto_fk': 'inplaceeditform_extra_fields.fields.AdaptorAutoCompleteForeingKeyField',
                       'auto_m2m': 'inplaceeditform_extra_fields.fields.AdaptorAutoCompleteManyToManyField',
                       'image_thumb': 'inplaceeditform_extra_fields.fields.AdaptorImageThumbnailField',
                       'tiny': 'inplaceeditform_extra_fields.fields.AdaptorTinyMCEField',}

And after when you want use this specific adaptor you indicate it, e.g.:

{% inplace_edit "content.field_name" adaptor="tiny" %}

Because these fields are not in django-inplaceedit

  • They have dependece of the other eggs

  • They are a particular solution

  • Theese do not work immediately, you have to code them

AdaptorAutoCompleteForeingKeyField and AdaptorAutoCompleteManyToManyField

These fields are dependent of Django Ajax Select. You have to create a channel (lookup)

{% inplace_edit "content.field_name" adaptor="auto_fk", lookup="my_lookup" %}

For more info, visit the doc of ajax select

AdaptorImageThumbnailField

This field is dependent of Sorl thumbnail. You only should indicate the size.

{% inplace_edit "content.field_name" adaptor="image_thumb", size="16x16" %}

It can help you, configure in your settings:

THUMBNAIL_DEBUG = True

For more info, visit the doc of thumbnail

AdaptorTinyMCEField

This field is dependent of cmsutils.

{% inplace_edit "content.field_name" adaptor="tiny" %}

For more info, visit the doc of cmsutils

Also you must link or copy the cmsutils/media/ directory in your project media directory

ln -s cmsutils/media /path/to/your/project/media/

Development

You can get the leading edge version of inplaceedit-extra-fields by doing a checkout of its repository:

https://github.com/goinnn/django-inplaceedit-extra-fields

0.0.2 (2011-12-08)

  • Complete the README

0.0.1 (2011-12-08)

  • First version to AdaptorAutoCompleteForeingKeyField and AdaptorAutoCompleteManyToManyField

  • First version to AdaptorImageThumbnailField

  • First version to AdaptorTinyMCEField

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

File details

Details for the file django-inplaceedit-extra-fields-0.0.2.tar.gz.

File metadata

File hashes

Hashes for django-inplaceedit-extra-fields-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cb3fd589e6f7b572c9f9df73defd23881bed3023a7073c2bcd9489486f5cc934
MD5 79aaf3167133d597453f24029e436176
BLAKE2b-256 2c1d4cdad8c0e10fa75efc6edaf2420c6476b981b4c9dec50cb4e18ac9c29492

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page