Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2141 -- corrected indentation problems in a couple of the code…

… fragments.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3126 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ed1dcbf3e7313ea4bb779210f09cf3e4c7e7956f 1 parent 97fedcc
Malcolm Tredinnick authored June 14, 2006

Showing 1 changed file with 9 additions and 9 deletions. Show diff stats Hide diff stats

  1. 18  docs/model-api.txt
18  docs/model-api.txt
@@ -1634,10 +1634,10 @@ to happen whenever you save an object. For example::
1634 1634
         name = models.CharField(maxlength=100)
1635 1635
         tagline = models.TextField()
1636 1636
 
1637  
-    def save(self):
1638  
-        do_something()
1639  
-        super(Blog, self).save() # Call the "real" save() method.
1640  
-        do_something_else()
  1637
+        def save(self):
  1638
+            do_something()
  1639
+            super(Blog, self).save() # Call the "real" save() method.
  1640
+            do_something_else()
1641 1641
 
1642 1642
 You can also prevent saving::
1643 1643
 
@@ -1645,11 +1645,11 @@ You can also prevent saving::
1645 1645
         name = models.CharField(maxlength=100)
1646 1646
         tagline = models.TextField()
1647 1647
 
1648  
-    def save(self):
1649  
-        if self.name == "Yoko Ono's blog":
1650  
-            return # Yoko shall never have her own blog!
1651  
-        else:
1652  
-            super(Blog, self).save() # Call the "real" save() method.
  1648
+        def save(self):
  1649
+            if self.name == "Yoko Ono's blog":
  1650
+                return # Yoko shall never have her own blog!
  1651
+            else:
  1652
+                super(Blog, self).save() # Call the "real" save() method.
1653 1653
 
1654 1654
 .. _database API docs: http://www.djangoproject.com/documentation/db_api/
1655 1655
 

0 notes on commit ed1dcbf

Please sign in to comment.
Something went wrong with that request. Please try again.