You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had this error while creating a service to a django project :
AttributeError: 'Options' object has no attribute get_all_field_names
this is the code:
User = get_user_model()
class Container(DjangoComplexModel):
class Attributes(DjangoComplexModel.Attributes):
django_model = User
django_exclude = []
this part of the tracback:
from .services import hello_world_service, app, HelloWorldService
File "/home/hadeel/projects/sadie_service/service/services.py", line 50, in <module>
class Container(DjangoComplexModel):
File "/home/hadeel/.virtualenvs/sadie/lib/python3.5/site-packages/spyne/util/meta.py", line 66, in preparing_constructor
return constructor(cls, name, bases, attributes)
File "/home/hadeel/.virtualenvs/sadie/lib/python3.5/site-packages/spyne/util/django.py", line 427, in __new__
optional_relations=optional_relations)
File "/home/hadeel/.virtualenvs/sadie/lib/python3.5/site-packages/spyne/util/django.py", line 291, in map
for field in self._get_fields(django_model, exclude):
File "/home/hadeel/.virtualenvs/sadie/lib/python3.5/site-packages/spyne/util/django.py", line 268, in _get_fields
meta.get_all_field_names())
AttributeError: 'Options' object has no attribute 'get_all_field_names'
The text was updated successfully, but these errors were encountered:
I had this error while creating a service to a django project :
AttributeError: 'Options' object has no attribute
get_all_field_names
this is the code:
this part of the tracback:
The text was updated successfully, but these errors were encountered: