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)
    body  = models.TextField('Body text')

class Project(models.Model):
    content  = models.OneToOneField(Content, edit_inline=models.TABULAR, 
num_in_admin=1, core=True, related_name='project_content')
    subtitle = models.CharField('Subtitle', maxlength=255)

    class Admin:
        pass

Now when i try to add a project through the admin interface, i don't get the 
Content fields inlined, but only a empty input dropdown. Am i missing 
something obvious?

I'm using Django-0.95.

Best Regards,
Dirk Eschler

-- 
Dirk Eschler <mailto:[EMAIL PROTECTED]>
http://www.krusader.org

--~--~---------~--~----~------------~-------~--~----~
 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