Re: OneToOneField and edit_inline

2006-12-18 Thread Rob Slotboom
Maybe we should create some kind of pressure group for this :-) I don't have any idea who can be consulted for this subject, do you? Cheers, Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: OneToOneField and edit_inline

2006-12-18 Thread Dirk Eschler
On Monday 18 December 2006 22:49, Rob Slotboom wrote: > > I'd like to be able to edit Project and News separately with Content > > inline instead. Do you know what i mean? > > Hi Dirk, > > I get the point though I think this will not work. I've tried similar > things when creating a menu, where a

Re: OneToOneField and edit_inline

2006-12-18 Thread Rob Slotboom
> I'd like to be able to edit Project and News separately with Content inline > instead. Do you know what i mean? Hi Dirk, I get the point though I think this will not work. I've tried similar things when creating a menu, where a menu "one to oned" to a poll item or blog entry. I gave up. In

Re: OneToOneField and edit_inline

2006-12-18 Thread Dirk Eschler
On Saturday 16 December 2006 12:07, Rob Slotboom wrote: > Hi Dirk, > I think it's the other way around, try this > > > class Content(models.Model): > title = models.CharField('Title', maxlength=255, core=True) > body = models.TextField('Body text') > > class Admin: > fields =

Re: OneToOneField and edit_inline

2006-12-16 Thread Rob Slotboom
Hi Dirk, I think it's the other way around, try this class Content(models.Model): title = models.CharField('Title', maxlength=255, core=True) body = models.TextField('Body text') class Admin: fields = ( (None, {'fields': ('title','body',)}), )

OneToOneField and edit_inline

2006-12-14 Thread Dirk Eschler
Hello, i'm having some problems with the OneToOneField. I have a content app with a class Content that i want to use as base class in several other classes (like Project in the below example): class Content(models.Model): title = models.CharField('Title', maxlength=255, core=True)

OneToOneField and edit_inline

2006-04-17 Thread Dagur
Hi, I have a model like this (which is based on an old system I'm porting): class Member(meta.Model): user = meta.OneToOneField(auth.User, core=True) ipb_id = meta.IntegerField(default=0) website = meta.URLField(blank=True, null=True) hide_email = meta.BooleanField(default=True)