Skip to content
#

django-rest-framework

Here are 3,850 public repositories matching this topic...

zaskan
zaskan commented Apr 27, 2020
ISSUE TYPE

When a playbook is not valid but its filename is specified using a rest api enpoint, (e.g using job_templates endpoint) the system returns "Playbook not found for project".

SUMMARY

Error "Playbook not found for project", suggest users that yaml file doesn't exist at specified playbook path. In this particular situation error message like "Playbook specified doesn't cont

MrThanlon
MrThanlon commented Sep 23, 2019

在提交issue之前请

  • 认真阅读文档 http://docs.onlinejudge.me/#/
  • 搜索和查看历史issues
  • 安全类问题请不要在 GitHub 上公布,请发送邮件到 admin@qduoj.com,根据漏洞危害程度发送红包感谢。

然后提交issue请写清楚下列事项

 - 进行什么操作的时候遇到了什么问题,最好能有复现步骤
 - 错误提示是什么,如果看不到错误提示,请去data文件夹查看相应log文件。大段的错误提示请包在代码块标记里面。

  • 你尝试修复问题的操作
  • 页面问题请写清浏览器版本,尽量有截图
sambenas
sambenas commented Jul 16, 2019

If using a custom authentication token model, the related_name cannot be auth_token or that will clash with the default token model related name and the django project will fail to start.

The RegisterView returns an authentication token using user.auth_token. Since the related name for a custom token model had to be changed, user.auth_token does not actually exist.

As a workaround a

phr34k
phr34k commented Mar 28, 2020

I'm new to rest_framework but I'm using drf in combination with redoc and this library and it seems to work fantastic.

I was wondering how can I generate custom sections of the documentation for objects that are commonly reused across all API calls. For example, I have a token object that is query/post parameter so I would like this to be explained topic in its own section.

With the help of

ara
murdav
murdav commented Feb 11, 2019

First of all thanks for this package, it's very useful!
My models are structured like these:

class Info(TimeStampedModel):
    identifier = models.UUIDField(_('info'), default=uuid.uuid4, primary_key=True, editable=False)
    ***
class Alert(TimeStampedModel):
    identifier = models.UUIDField(_('alert'), default=uuid.uuid4, primary_key=True, editable=False)
 
vijesh-venugopal
vijesh-venugopal commented Apr 22, 2020

I'm also facing the same issue related to the EmbeddedDocumentSerializer and here the value for Embedded Document field is a model instance. It returns the error like:

code:
for key, value in validated_data.items():

AttributeError: 'Modelname' object has no attribute 'items'
Any suggestions please.

Package versions:
django == 3.0.4
djangorestframework == 3.11.0
mongoengine == 0.19.

mlorant
mlorant commented May 24, 2018

Today, this github project is named "drf-extra-fields", which is good, since it is hosting fields for the Django REST Framework.

However, the PyPi package is django-extra-fields which creates confusion, and is incorrect since the package does not "add" fields for Django itself.

Maybe this was for SEO reasons (easier to find the package with the keyword django in it), but this can be resol

Improve this page

Add a description, image, and links to the django-rest-framework topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the django-rest-framework topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.