Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

missed markdown

  • Loading branch information...
commit 55e785666926105d59f9a2c224b094d29069655d 1 parent 0e7b320
@sontek sontek authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 README.markdown
View
21 README.markdown
@@ -0,0 +1,21 @@
+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)
Please sign in to comment.
Something went wrong with that request. Please try again.