From dae5863058cc53278bd830be8e89492f62e46117 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 4 Aug 2005 14:51:46 +0000 Subject: [PATCH] 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 --- django/core/management.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/django/core/management.py b/django/core/management.py index 9e8abb4614..fd7af65563 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -446,6 +446,9 @@ def inspectdb(db_name): yield "# * Rearrange models' order" 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 "#" + yield "# Also note: You'll have to insert the output of 'django-admin.py sqlinitialdata [appname]'" + yield "# into your database." yield '' yield 'from django.core import meta' yield ''