thirdparty/google_appengine/lib/django/tests/regressiontests/bug639/models.py
changeset 2866 a04b1e4126c4
parent 2864 2e0b0af889be
child 2868 9f7f269383f7
--- a/thirdparty/google_appengine/lib/django/tests/regressiontests/bug639/models.py	Sun Sep 06 23:31:53 2009 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-import tempfile
-from django.db import models
-
-class Photo(models.Model):
-    title = models.CharField(maxlength=30)
-    image = models.FileField(upload_to=tempfile.gettempdir())
-    
-    # Support code for the tests; this keeps track of how many times save() gets
-    # called on each instance.
-    def __init__(self, *args, **kwargs):
-       super(Photo, self).__init__(*args, **kwargs)
-       self._savecount = 0
-    
-    def save(self):
-        super(Photo, self).save()
-        self._savecount +=1
\ No newline at end of file