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

resource_uri needs help text by default #14

Open
FrankBie opened this issue Jun 24, 2012 · 1 comment
Open

resource_uri needs help text by default #14

FrankBie opened this issue Jun 24, 2012 · 1 comment

Comments

@FrankBie
Copy link

if include_resource_uri = True and you use ModelResources - you have to add the field manually and add a help text.

tastytools\test\definitions\fields.py", line 93, in multi_help
self.assertTrue(False, msg)
AssertionError: False is not True : Missing help text for xxx.resource_uri resource field.

As this field is self explanatory the help text should be ommited here.

@juanique
Copy link
Owner

Hi @FrankBie,

You should extend tastytools.resources.ModelResource ( https://github.com/juanique/django-tastytools/blob/master/tastytools/resources.py) . It includes the resource_uri field definition with help text. It also provides necessary methods used to improve the automatic html documentation. This is probably not clear enough on the docs. Please let me know if this solves your problem.

I've been really busy with other work projects but I'm planning to give more time to django-tastytools since I've seen some interest out there. The code is kinda messy right now and a lot of doc is missing. I'm actually kind o surprised to see people using the automatic testing feature. Thanks a lot for your feedback!

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