Permalink
Browse files

more code updates

  • Loading branch information...
sontek committed Oct 20, 2010
1 parent d1aad51 commit 690c9a74a8b0f8e465424ffd4f2d3758e5412c8f
Showing with 10 additions and 11 deletions.
  1. +10 −11 README.markdown
View
@@ -1,10 +1,10 @@
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
@@ -13,10 +13,9 @@ urls.py
forms.py
====================
-override any ModelChoiceField widget with SelectWithPopUp
-`from tekextensions.widgets import SelectWithPopUp
-from django import forms
+>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)
-`
+`class CustomForm(forms.Form):`
+` company = forms.ModelChoiceField(CustomModel.objects, widget=SelectWithPopUp)`

0 comments on commit 690c9a7

Please sign in to comment.