Adrian Holovaty
a8ecb56106
Fixed #267 -- "Save and continue editing" no longer assumes object has an ID field. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 14:48:48 +00:00
Adrian Holovaty
3f2df5e7aa
Fixed #269 -- Added MatchesRegularExpression validator. Thanks, Hugo!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 14:42:01 +00:00
Adrian Holovaty
cfbf261709
Improved 'django-admin inspectdb' so that it doesn't raise an exception for unknown field types. Now it uses TextField by default and outputs a Python comment.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 03:49:24 +00:00
Adrian Holovaty
808e50986b
Fixed #257 -- Empty model modules no longer cause an error. Thanks, Bill de hÓra
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 03:32:56 +00:00
Adrian Holovaty
f4e4ae96cb
Improved 'django-admin inspectdb' so that it detects ForeignKey relationships -- PostgreSQL only
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 22:33:39 +00:00
Jacob Kaplan-Moss
49c6708716
Added doc view for templates that will show the search path for a given template on each site
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 20:29:27 +00:00
Jacob Kaplan-Moss
ce0d0cd9e2
Made a bunch of fixes to auto-generated admin documentation:
...
* Views are no longer "doubled"
* Links work better (view -> model links and friends were broken)
* Performance has been improved so now the pages no longer need to be cached.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 19:59:51 +00:00
Jacob Kaplan-Moss
ffc3edd79e
Fixed a subtle bug with the {% load %} tag: if a tag/filter was removed from template.registered_tags/filters, {% load %} would fail (since module-level code is only run on an initial import). {% load %} now reloads the module, which makes sure that the tag always works even when someone's been doing something screwy. This fixes #242 (and wouldn't had been found without it, so much thanks).
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 18:47:46 +00:00
Adrian Holovaty
51aba5deaf
Removed redundant verbose names from auth and core models, because they're no longer required
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:56:22 +00:00
Jacob Kaplan-Moss
623863d0a4
Fixed #105 -- collapsable fieldsets now work in both ways (thanks, Simon)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@387 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:49:49 +00:00
Adrian Holovaty
b3b27d2593
Removed id field from auth.Message model -- it's implied
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@386 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:48:33 +00:00
Jacob Kaplan-Moss
2e83364965
Calendar next/prev popups now work in Safari ( fixed #2 )
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:45:53 +00:00
Adrian Holovaty
d9401b78f1
Added first stab at 'django-admin.py inspectdb', which takes a database name and introspects the tables, outputting a Django model. Works in PostgreSQL and MySQL. It's missing some niceties at the moment, such as detection of primary-keys and relationships, but it works. Refs #90 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:08:24 +00:00
Jacob Kaplan-Moss
1510ca1a80
Fixed #227 -- the sqlite backend now correctly typecasts unicode objects to bytestrings (thanks hugo)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 21:49:57 +00:00
Adrian Holovaty
e0c3dd3318
Refactored meta.py -- created a django.core.meta package, with init.py and fields.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 21:29:52 +00:00
Adrian Holovaty
006e9e789b
Fixed #180 -- Removed 'enctype' from FREE_COMMENT_FORM template in contrib.comments.templatetags
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 20:07:31 +00:00
Adrian Holovaty
77faac0cb7
Changed SEND_BROKEN_LINK_EMAILS from True to False in global_settings -- it was causing too much confusion with improperly configured/missing mail servers
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 20:01:18 +00:00
Jacob Kaplan-Moss
440a2a97e9
Added framework for writing non-model-based tests, and added tests for cache and templates
...
from the old django/tests location (which has been removed).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 19:09:07 +00:00
Adrian Holovaty
b307fb09bb
Fixed #239 and #107 -- Changed model init() to use Field.get_default() if the value wasn't explicitly passed as a keyword argument. That means setting 'id=None' is no longer necessary, and you can leave off fields if you want them to have default values set.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 16:26:39 +00:00
Adrian Holovaty
1a8fc57bf6
Fixed #214 -- Added get_values() and get_values_iterator() module-level functions to DB API. Thanks, rmunn
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 15:32:42 +00:00
Jacob Kaplan-Moss
af95567c14
Improved error message in urlresolvers ( fixes #240 )
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 14:41:01 +00:00
Adrian Holovaty
8b36eb11d3
Gave comments.FreeComment a get_absolute_url() method
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-30 18:56:36 +00:00
Adrian Holovaty
47ce61533a
Fixed #228 -- Better handling of timezones. Thanks, rmunn
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 21:40:09 +00:00
Adrian Holovaty
017b8753a6
Fixed #219 and #188 -- Database timestamp typecast no longer assumes '-' delineates the time zone
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 21:10:09 +00:00
Adrian Holovaty
9e64035796
Changed admin views to output utf-8 charset explicitly
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 16:32:47 +00:00
Adrian Holovaty
d4a9a4f83a
Fixed #223 -- Changed breadcrumbs in admin doc templates to use relative, not absolute, URLs. Thanks, Drew Amato
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@337 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 15:25:31 +00:00
Adrian Holovaty
cf9efea240
Whoop, left in an 'assert False' in [333]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@334 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-28 15:01:10 +00:00
Adrian Holovaty
f5b605ab1b
Fixed #218 -- Fixed admin change-list column sorting
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@333 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-28 14:59:50 +00:00
Adrian Holovaty
1d2ab36068
Fixed bug for models with a ForeignKey('self') and order_with_respect_to
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@332 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-27 19:20:29 +00:00
Adrian Holovaty
9b98383175
Fixed #187 -- Made admin view handle one-to-one relationships in which the parent relationship doesn't have the 'admin' parameter set. Thanks, Moof
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 23:24:55 +00:00
Adrian Holovaty
d52db2d879
Changed django.core.management.get_sql_delete to be more robust when many-to-many tables don't exist
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 23:18:08 +00:00
Adrian Holovaty
d8ef66b17d
Fixed #186 -- Refactored meta.py to remove duplicate code between function_get_list and function_get_iterator. Thanks, rmunn@pobox.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 23:04:50 +00:00
Adrian Holovaty
18e420da02
Added breadcrumbs to password-reset and password-change admin templates
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@327 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:54:59 +00:00
Adrian Holovaty
6a12d65b97
Changed admin logged_out template NOT to hard-code /admin/ as the 'Home'. Refs #158
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:52:18 +00:00
Adrian Holovaty
fe91881e35
Fixed #159 -- Admin users no longer have to log in to go to the 'log out' page. Thanks, Manuzhai
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:48:04 +00:00
Adrian Holovaty
3c0c0e7317
Fixed #162 -- Admin log now records repr() before calling delete(), instead of after calling it() -- thanks, mfenniak@pobox.com!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:43:27 +00:00
Adrian Holovaty
b23c63bcfe
Fixed #206 -- 'django-admin sqlclear' now deletes from admin log to prevent referential integrity violations
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:38:54 +00:00
Adrian Holovaty
aeff2cb530
Fixed #93 -- Fixed 'django-admin startproject' to use os.path.join instead of string concatenation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:15:51 +00:00
Adrian Holovaty
5a3da949fa
Fixed #198 -- istartswith and iendswith weren't working properly. Thanks, brantley
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 18:38:44 +00:00
Adrian Holovaty
8a86e7713f
Fixed #161 -- Log output for 'django-admin runserver' no longer includes admin media
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 17:49:49 +00:00
Adrian Holovaty
ba3db4ca38
Removed Adrian's note in the docstring of django.utils.feedgenerator -- it's part of Django now
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 17:42:37 +00:00
Adrian Holovaty
284948b9cf
Fixed #166 -- Added an 'in' lookup type to the database API
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@318 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 16:53:58 +00:00
Adrian Holovaty
786c750c40
Fixed #163 -- Added 'pk' database API option, which is a shorthand for (primary_key)__exact
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 16:11:43 +00:00
Adrian Holovaty
e207378ad3
Fixed #204 -- Changed 'django-admin createsuperuser' to disallow blank passwords
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 14:37:00 +00:00
Jacob Kaplan-Moss
1484f2e225
Fixed #207 -- thanks, Mathieu.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 14:26:15 +00:00
Adrian Holovaty
7d574e8f76
Removed 'use_numeric_months' parameter in generic date views (from [308]) in favor of something more powerful -- you can now provide month_format and day_format, which are format strings that specify how you expect the month and day to be formatted in the URL.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@312 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 03:48:41 +00:00
Jacob Kaplan-Moss
48441f467f
Fixed #193 -- thanks (again), steadicat
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25 22:17:47 +00:00
Jacob Kaplan-Moss
a6ed088c62
Fixed #194 -- thanks, steadicat!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25 22:16:30 +00:00
Jacob Kaplan-Moss
12ffae6df4
Fixed #197 -- thanks for finding that, mmarshall
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25 22:15:07 +00:00
Jacob Kaplan-Moss
5498dbe519
Fixed #196 : date-based generic views now have a "use_numeric_months" option if you'd like to use numeric months in the urls. Also fixed #183 while I was at it.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25 22:07:04 +00:00