Permalink
Browse files

trying to get code to look right

  • Loading branch information...
1 parent 55e7856 commit d1aad51c7d3105995f4a9ba405efdce414f8ea21 @sontek sontek committed Oct 20, 2010
Showing with 14 additions and 13 deletions.
  1. +14 −13 README.markdown
View
@@ -1,21 +1,22 @@
settings.py
====================
->TEMPLATE_CONTEXT_PROCESSORS = (
-> 'tekextensions.context_processors.admin_media_prefix',
->)
->INSTALLED_APPS = (
-> 'tekextensions',
->)
+`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'),
+`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)
+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 d1aad51

Please sign in to comment.