inspectdb database defaults

2015-03-12 Thread Collin Anderson
Hi All, We recently added database introspection of defaults for purposes of testing migrations. https://github.com/django/django/commit/75303b01a9cc900eebf1f27ba0bc6508334242fc I would find it useful to have inspectdb attempt to use those defaults when generating models. (My use case is runni

Re: inspectdb database defaults

2015-03-10 Thread Shai Berger
On Tuesday 10 March 2015 19:39:19 Michael Manfre wrote: > I agree with Tim. > > I would support refactoring inspectdb so that it would be easier for anyone > to subclass the command and add additional logic to the introspection > process. +1. Shai.

Re: inspectdb database defaults

2015-03-10 Thread Michael Manfre
I agree with Tim. I would support refactoring inspectdb so that it would be easier for anyone to subclass the command and add additional logic to the introspection process. Alternatively, moving much of the logic out to a function that returns a JSON representation of the database that inspectdb u