Fixed #263 -- inspectdb output now includes a comment reminding people to run sqlinitialdata. Thanks, Hugo

git-svn-id: http://code.djangoproject.com/svn/django/trunk@401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-08-04 14:51:46 +00:00
parent a8ecb56106
commit dae5863058
1 changed files with 3 additions and 0 deletions

View File

@ -446,6 +446,9 @@ def inspectdb(db_name):
yield "# * Rearrange models' order" yield "# * Rearrange models' order"
yield "# * Add primary_key=True to one field in each model." yield "# * Add primary_key=True to one field in each model."
yield "# Feel free to rename the models, but don't rename db_table values or field names." yield "# Feel free to rename the models, but don't rename db_table values or field names."
yield "#"
yield "# Also note: You'll have to insert the output of 'django-admin.py sqlinitialdata [appname]'"
yield "# into your database."
yield '' yield ''
yield 'from django.core import meta' yield 'from django.core import meta'
yield '' yield ''