Comments (3)
Similar problem, I have a custom user model and I get this error:
'username' is not a callable or an attribute of 'UserRelationshipAdmin' or found in the model 'MyCustomUser'.
Evidently I don't have a 'username' field in my custom user model, I have an email defined as USERNAME_FIELD in the model instead
EDIT: I think the problem is in admin.py when importing
from django.contrib.auth.admin import UserAdmin
The UserAdmin is using the fields for the built-in User model, and when registering: admin.site.register(User, UserRelationshipAdmin) we have the error, instead of importing UserAdmin we should be able to import the custom user admin, I'm also pretty new to django so I couldn't find a solution yet.
from django-relationships.
Did any of you fixed this problem?
from django-relationships.
I've moved to django-friendship. A workaround would be to unregister django-relationship from the admin.
from django-relationships.
Related Issues (20)
- Not Getting How It Relate HOT 2
- Data Fixture HOT 2
- Still not working. HOT 1
- Relationship Status Not Found HOT 3
- "manage.py dumdata auth.user" returns Error HOT 7
- __init__() got an unexpected keyword argument 'core_filters' HOT 9
- Creating notifications HOT 1
- Ordering relationships by time created HOT 2
- Adding/Removing via Ajax HOT 2
- You can add a symmetrical relationship without approval HOT 4
- Cannot resolve keyword 'site' into field. Choices are: from_user, id, latest_message, to_user HOT 1
- Code explaination HOT 1
- Friend Requests HOT 1
- Django 1.7 Errors in application HOT 3
- Some erros in Django 1.7 HOT 6
- Django-relationships: RelationshipStatus matching query doesnt exist HOT 2
- Django 1.7 support
- Django 1.8 support & Python 3 support HOT 1
- This project needs a maintainer. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-relationships.