On Wed, 2007-04-04 at 18:33 +0800, Russell Keith-Magee wrote:
> On 4/4/07, mh <[EMAIL PROTECTED]> wrote:
[...]
> > > GenericRelations exist for this kind of relationship. GenericRelations
> > > aren't completely stable or documented, and they aren't fully
> > > supported in the Admin, but they do work reasonably well, and there
> > > are some examples of their use at:
> > >
> > > http://www.djangoproject.com/documentation/models/generic_relations/
> >
> > Ahh, thanks for the information. 'not completely stable' sounds
> > somewhat worrying tho, but I suppose with a bit of luck it might be by
> > the time I finish what I'm working on ;).
> 
> How about "unstable relative to unusually high standards" :-). They
> are tested fairly extensively in the Django test suite, but some small
> issues are still being worked out around some edge cases. If you add
> your own tests for your specific use cases in your own application,
> you should be able to be reasonably confident that GenericRelations
> will do what they are supposed to do.

The real instability in generic relations is that they are going to move
their location in the source in a little while. Because generic
relations depend on the ContentType model and the latter is an optional
installed component, we have to move GenericRelation out of core. This
is one of my tasks and I've been waiting for a while after we released
0.96 to make this change, just in case we had any big problems in the
release and had to make a quick point release. Things seemed to have
gone smoothly, though, so I'll probably make that change fairly soon.

Accommodating this change won't be hard, though. It will basically mean
changing the import path for GenericRelation in your code. A once-off
search and replace. When it happens, it will be mentioned on
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges , for
the benefit of those following the subversion trunk.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to