hi all wow, ticket #6755 <http://code.djangoproject.com/ticket/6755> is closed!
so, just tried it out and got an error, oh my dear! is it me or is there still a problem? here is the code (simplified) *model.py* class Item(models.Model): pass class Note(models.Model): text = models.TextField(null=True, blank=True) class Dossier(Item): pass class Action(Item): pass *admin.py* class NoteInline(admin.StackedInline): model = Note extra = 1 class ItemOptions(admin.ModelAdmin): model = Item inlines = [NoteInline] class DossierOptions(admin.ModelAdmin): model = Dossier inlines = [NoteInline] class ActionOptions(admin.ModelAdmin): model = Action inlines = [NoteInline] admin.site.register(Note) admin.site.register(Item, ItemOptions) admin.site.register(Dossier, DossierOptions) admin.site.register(Action, ActionOptions) *result when viewing a dossier in admin (running trunk 1.0-alpha-SVN-8052) * Exception at /admin/dossiers/dossier/37/ <class 'mysite.dossiers.models.Note'> has no ForeignKey to <class 'mysite.dossiers.models.Dossier'> Request Method: GET Request URL: http://localhost:8888/admin/dossiers/dossier/37/ Exception Type: Exception Exception Value: <class 'mysite.dossiers.models.Note'> has no ForeignKey to <class 'mysite.dossiers.models.Dossier'> Exception Location: c:\usr\django\trunk\django\forms\models.py in _get_foreign_key, line 453 the same happens with Action, but it does work with Item, of course. somehow the notes property is not inherited properly. it does exist when accessing it in the shell, though: >>> from mysite.dossiers.models import * >>> d = Dossier.objects.get(dossier_number=42) >>> d.notes <django.db.models.fields.related.RelatedManager object at 0x01209730> >>> what's happening here? thanks André --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---