Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model Inheritance and Admin Interface #240

Open
meatballs opened this issue Feb 24, 2014 · 1 comment
Open

Model Inheritance and Admin Interface #240

meatballs opened this issue Feb 24, 2014 · 1 comment

Comments

@meatballs
Copy link
Contributor

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)
@meatballs
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant