Skip to main content

A set of re-usable widgets and commands for django

Project description

admin popups
====================
> if using grappeli, copy RelatedObjectLookups.js to your admin_media folder from django's admin media

settings.py
--------------------
TEMPLATE_CONTEXT_PROCESSORS = (
'tekextensions.context_processors.admin_media_prefix',
)
INSTALLED_APPS = (
'tekextensions',
)

urls.py
--------------------
url(r'^add/(?P<model_name>\w+)/?$', 'tekextensions.views.add_new_model'),

forms.py
--------------------
>override any ModelChoiceField widget with SelectWithPopUp

from tekextensions.widgets import SelectWithPopUp
from django import forms

class CustomForm(forms.Form):
company = forms.ModelChoiceField(CustomModel.objects, widget=SelectWithPopUp)

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

django-tekextensions-0.0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

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