Russel, I'm only a non-programmer user, but just curious question:
why you (all of core developers)  implement the schema evolution in
the self model that is evolving and not outside the model?

Why not if you have:

from django.db import models

    class Poll(models.Model):
        question = models.CharField(maxlength=200)
        pub_date = models.DateTimeField('date published')
        author = models.CharField(maxlength=200)

and you want to rename 'pub_date' to 'publication_date', add 'purpose'
field, and modify DateTimeField to DateField why not:

class Migration(models.Migration):
    Poll.changes = {Poll.rename(pub_date, Poll.publication_date)
                                 Poll.addfield(purpose =
models.CharField(maxlength=100)),
                                 Poll.modify(publication_date =
models.DateField("date published")}


Well, in more pollite syntax but you understand me

Migration migrates Poll in database and writes models file
A desktop user have a evolutioned model

Thanks,
Xan.


On Sep 28, 2:43 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 9/28/07, Derek Anderson <[EMAIL PROTECTED]> wrote:
>
>
>
> > p.s.  long emails on complicated topics....details get murky.  so i've
> > labeled the four major questions {Q1-4} so we can further isolate where
> > we do and do not see eye2eye.  :)
>
> Rather that descend in to another few weeks of multi-page emails where
> we misunderstand  each others interpretation of terms like 'signature'
> and 'introspection', I think the most productive thing I can do at
> this point is to concentrate on helping my friend Ben get a prototype
> out the door so that we can all have a discussion based upon actual
> code, rather than a quick-and-dirty mailing list specification.
>
> I've seen your code, and pointed out where I see problems. I hope to
> be able to return the favour very soon. Then it will be use cases at
> 10 paces. :-)
>
> Yours,
> Russ Magee %-)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to