diff --git a/TODO.txt b/TODO.txt deleted file mode 100644 index 2aaf24a413..0000000000 --- a/TODO.txt +++ /dev/null @@ -1,25 +0,0 @@ -TODO -==== - -The follow is a list, more or less in the order I intend to do them of things -that need to be done. I'm trying to be as granular as possible. - - -1) Replace old instances of :setting:`DATABASE_` with a new tag or something. - -2) Update all management commands in the following way: - - * ``dumpdata``: By default dump the ``default`` database. Later add a - ``--database`` flag. - - flush, reset, and syncdb need to not prompt the user multiple times. - -3) Handle backends with custom Query classes. - -4) Wait on the merge of the m2m stuff. - -5) Fix django.contrib.gis, it's broken in all sorts of ways. - -6) Generate SQL, instead of an error for nesting on different DBs. - -7) Time permitting add support for a ``DatabaseManager``. diff --git a/django/contrib/gis/tests/relatedapp/tests.py b/django/contrib/gis/tests/relatedapp/tests.py index 0e905274d4..2bdf29304d 100644 --- a/django/contrib/gis/tests/relatedapp/tests.py +++ b/django/contrib/gis/tests/relatedapp/tests.py @@ -279,11 +279,11 @@ class RelatedGeoModelTest(unittest.TestCase): def test14_collect(self): "Testing the `collect` GeoQuerySet method and `Collect` aggregate." # Reference query: - # SELECT AsText(ST_Collect("relatedapp_location"."point")) FROM "relatedapp_city" LEFT OUTER JOIN - # "relatedapp_location" ON ("relatedapp_city"."location_id" = "relatedapp_location"."id") + # SELECT AsText(ST_Collect("relatedapp_location"."point")) FROM "relatedapp_city" LEFT OUTER JOIN + # "relatedapp_location" ON ("relatedapp_city"."location_id" = "relatedapp_location"."id") # WHERE "relatedapp_city"."state" = 'TX'; ref_geom = fromstr('MULTIPOINT(-97.516111 33.058333,-96.801611 32.782057,-95.363151 29.763374,-96.801611 32.782057)') - + c1 = City.objects.filter(state='TX').collect(field_name='location__point') c2 = City.objects.filter(state='TX').aggregate(Collect('location__point'))['location__point__collect'] @@ -293,6 +293,7 @@ class RelatedGeoModelTest(unittest.TestCase): self.assertEqual(4, len(coll)) self.assertEqual(ref_geom, coll) + # TODO: Related tests for KML, GML, and distance lookups. def suite(): diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index bf92868342..3cff1c61cb 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -257,6 +257,7 @@ Here's a sample configuration which uses a MySQL option file:: } } + # my.cnf [client] database = NAME diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 688b25cd86..da9bb99224 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -498,11 +498,6 @@ prompts. The :djadminopt:`--database` option can be used to specify the alias of the database to reset. -Executes the equivalent of ``sqlreset`` for the given app name(s). - -The :djadminopt:`--noinput` option may be provided to suppress all user -prompts. - runfcgi [options] ----------------- diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 20591311be..6d6abd1098 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -65,16 +65,6 @@ Forgeries `. .. templatetag:: cycle -csrf_token -~~~~~~~~~~ - -.. versionadded:: 1.1.2 - -In the Django 1.1.X series, this is a no-op tag that returns an empty string for -future compatibility purposes. In Django 1.2 and later, it is used for CSRF -protection, as described in the documentation for :ref:`Cross Site Request -Forgeries `. - cycle ~~~~~ diff --git a/docs/releases/1.2.txt b/docs/releases/1.2.txt index b01578635f..3c56abbe54 100644 --- a/docs/releases/1.2.txt +++ b/docs/releases/1.2.txt @@ -189,4 +189,3 @@ Django 1.2 adds the ability to use :ref:`more than one database issued at a specific database with the `using()` method on querysets; individual objects can be saved to a specific database by providing a ``using`` argument when you save the instance. - diff --git a/tests/regressiontests/backends/tests.py b/tests/regressiontests/backends/tests.py index 31e4f10cef..e4fa82403a 100644 --- a/tests/regressiontests/backends/tests.py +++ b/tests/regressiontests/backends/tests.py @@ -18,21 +18,6 @@ class Callproc(unittest.TestCase): return True else: return True - -class LongString(unittest.TestCase): - - def test_long_string(self): - # If the backend is Oracle, test that we can save a text longer - # than 4000 chars and read it properly - if settings.DATABASE_ENGINE == 'oracle': - c = connection.cursor() - c.execute('CREATE TABLE ltext ("TEXT" NCLOB)') - long_str = ''.join([unicode(x) for x in xrange(4000)]) - c.execute('INSERT INTO ltext VALUES (%s)',[long_str]) - c.execute('SELECT text FROM ltext') - row = c.fetchone() - c.execute('DROP TABLE ltext') - self.assertEquals(long_str, row[0].read()) class LongString(unittest.TestCase):