We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We need API call for obtain a some ContentTypes where key is a ContentType pk and value is a name of model.
GET: content/types/
return:
{ 15: 'item', 23: 'knowledge', 24: 'player', ... }
We only need 5 elements: Player, NPC, Item, Knowledge and Rol. This call will be necessary when are creating a new Content from frontend.
ContentType is a django model where are saved all django models:
from django.contrib.contenttypes.models import ContentType
The text was updated successfully, but these errors were encountered:
rarellano
No branches or pull requests
We need API call for obtain a some ContentTypes where key is a ContentType pk and value is a name of model.
GET: content/types/
return:
We only need 5 elements: Player, NPC, Item, Knowledge and Rol. This call will be necessary when are creating a new Content from frontend.
ContentType is a django model where are saved all django models:
from django.contrib.contenttypes.models import ContentType
The text was updated successfully, but these errors were encountered: