Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Re-usable views/templatetags/widgets for django applications
Python
tree: 7e1e741eaf

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tekextensions
README.markdown

README.markdown

admin popups

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)
Something went wrong with that request. Please try again.