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

Poor formatting response class info #62

Open
dacresni opened this issue Apr 4, 2014 · 8 comments
Open

Poor formatting response class info #62

dacresni opened this issue Apr 4, 2014 · 8 comments

Comments

@dacresni
Copy link

dacresni commented Apr 4, 2014

I'm using django 1.5 with tastypie 0.9
The Meta: queryset object is a manager class and yet i get this for every url

Response Class

ListView
class ListView( meta:Meta(), objects{})
class Meta

at the beginning of every expanded operation list and the help text is slammed in with everything else.
Is there a way to manipulate the formatting? I can't style this myself because there's no alternate styling method documented.

@johnraz
Copy link
Contributor

johnraz commented Apr 4, 2014

Not sure to really get what the issue is... Do you have a screenshot ?

@dacresni
Copy link
Author

dacresni commented Apr 7, 2014

how's this?
screen shot 2014-04-07 at 10 13 28 am

@dacresni
Copy link
Author

dacresni commented Apr 7, 2014

one more thing. How are you getting Help text and doc strings? is that tasypie or is that this plug in?

@johnraz
Copy link
Contributor

johnraz commented Apr 7, 2014

This is how the swagger version we are using renders the doc. It will be improved when we switch version. Everything is taken from the tastypie resource as we extend It.

@dacresni
Copy link
Author

dacresni commented Apr 8, 2014

so you're saying this is a solved issue and will be fixed in the next version? version 0.1.3 or 0.1.4 ?

@johnraz
Copy link
Contributor

johnraz commented Apr 8, 2014

I'm saying that it is not an issue but just the way it was implemented in swagger-ui.js (we depend on it). And I say that we plan to upgrade to swagger-ui.js 2.0 and there it is rendered in a different way, which should fit your needs.

@dacresni
Copy link
Author

dacresni commented Apr 8, 2014

Oh now I understand. But there's no estimate on what version that will be. I can either help or wait or perhaps its in the master branch and pip can pull it in from there ?

@johnraz
Copy link
Contributor

johnraz commented Apr 8, 2014

issues #58 and #36 are related. Feel free to submit a PR :)

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

2 participants