Browse files

added textile readme

  • Loading branch information...
1 parent 172de26 commit b3d1448fd06fb0888a7175279d9d641267110b5b @sontek sontek committed Oct 19, 2010
Showing with 18 additions and 0 deletions.
  1. +18 −0 README.textile
View
18 README.textile
@@ -0,0 +1,18 @@
+==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)

0 comments on commit b3d1448

Please sign in to comment.