Skip to content
This repository was archived by the owner on Feb 22, 2026. It is now read-only.
This repository was archived by the owner on Feb 22, 2026. It is now read-only.

Model Inheritance and Admin Interface #240

@meatballs

Description

@meatballs

I have a problem with inheritance and the admin interface. Using the following simple inheritance structure, the 'name' field does not appear in the admin screens.

Using the same structure with django.db instead of neo4djang.db works fine.

Moving the name field into the Child class also works fine.

This is on django 1.5.5 and the github repo version of neo4django.

models.py:

from neo4django.db import models

class Parent(models.NodeModel):
    name = models.StringProperty()

    class Meta:
        abstract = True

class Child(Parent):
    pass

admin.py:

from neo4django import admin
from core.models import Child

class ChildAdmin(admin.ModelAdmin):
    pass

admin.site.register(Child, ChildAdmin)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions