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)
====================
> 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
Release history Release notifications | RSS feed
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-tekextensions-0.0.1.tar.gz
.
File metadata
- Download URL: django-tekextensions-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a787b27b7f80b4678a6c07dd87d2361ba891e29adcc4d7205ba4ece450bd6e66 |
|
MD5 | 8f524fefd6190e60e58ff8eb6000f2a7 |
|
BLAKE2b-256 | 616a6e10934a0aa752add12f2b1d0a4b556e95db7f775ba56fc0db2445b97669 |