Re: Django model version control

2008-10-30 Thread christian
I tried it out David, and it is simple and it works, I was just about to make the same exact thing. Thank you! On 4 okt, 15:21, David Hall <[EMAIL PROTECTED]> wrote: > I've created a Google group for discussing possible improvements to the > django-reversion project.  The group is called 'django-

Re: Django model version control

2008-10-06 Thread David Hall
Hi Jonknee, Thanks for the bug report, I've uploaded a patch which should take care of that problem. I've taken the liberty of inviting you to a django-reversion Google discussion group. If you are interested in improving the system, I'd love to hear your feedback and comments! David. jonk

Re: Django model version control

2008-10-04 Thread David Hall
I've created a Google group for discussing possible improvements to the django-reversion project. The group is called 'django-reversion', and is a good place to let your views be heard about enhancements to the system. At some point I would like to put the project forward as a candidate for t

Re: Django model version control

2008-10-04 Thread David Hall
I did consider such an approach, but this runs into a fair amount confusion for things like model inheritance. Also, it would result in vast quantities of database tables being created. Likewise, custom fields would have to be treated carefully, as would unique fields. Also if you have any M

Re: Django model version control

2008-10-04 Thread Bas van Oostveen
That is exactly what i did for a project :) When you register a model for versioning, automagicly a new model is created which the original model + an 'version-control' abstract base model to add things like version numbers, datetimestamps, methods to diff between versions etc. Also all unique r

Re: Django model version control

2008-10-03 Thread jonknee
On Oct 1, 11:25 am, David Hall <[EMAIL PROTECTED]> wrote: > I've just released an open-source version control application for > Django.  It is available for download from Google code. Neat idea! I installed it and while it works for rolling back, it does not work bring back deleted items. I did a

Re: Django model version control

2008-10-03 Thread Erik Allik
What if, for each model under version control, you'd create an identical table (except the ID field would be a foreign key, not a primary one). Any time a migration is run on that model, the same migration could be run on the "twin" table, too. Erik On 02.10.2008, at 18:34, David Hall wrot

Re: Django model version control

2008-10-02 Thread David Hall
That is a problem, to be sure, and I'm not sure if a reasonable solution exists. As it stands, Django is currently lacking an automated rollback/recovery for models. The fullhistory branch tried to address this lack, but seems to have been abandoned for the time being. django-reversions impl

Re: Django model version control

2008-10-02 Thread Bas van Oostveen
But your schema's will most likely change over time. And sometimes in significant ways which do not have a likely default; e.g. splitting a full_name field into a first_name and last_name field or visa-versa. Now after applying this change to the database, how will django-reversions work when you

Re: Django model version control

2008-10-02 Thread Marek Stępniowski
2008/10/2 David Hall <[EMAIL PROTECTED]>: > Marek Stępniowski wrote: >> How does django-reversion deal with relationships between Django models? >> >> Version-controlling relationships between entities is an Achilles heel >> of such applications. I have read django-reversion docs on google code >>

Re: Django model version control

2008-10-02 Thread David Hall
This is best explained by example. Let's say you have two models, Foo and Bar, both under version control. >>> class Bar(models.Model): ... pass ... >>> class Foo(models.Model): ... bar = models.ForeignKey(Bar) If you save an instance of Foo, then the primary key of the referenced Ba

Re: Django model version control

2008-10-01 Thread Marek Stępniowski
On Wed, Oct 1, 2008 at 5:25 PM, David Hall <[EMAIL PROTECTED]> wrote: > > I've just released an open-source version control application for > Django. It is available for download from Google code. > > http://code.google.com/p/django-reversion/ > > Features include: > > - Roll back to any point in

Re: Django model version control

2008-10-01 Thread David Hall
This discussion has been moved from django-developers. To answer a pending question: This application is for tracking versions of data, not performing database schema migrations. Thus: - django-evolution concerns itself with maintaining versions of database schemas. - django-rever