django-tastytools icon indicating copy to clipboard operation
django-tastytools copied to clipboard

resource_uri needs help text by default

Open FrankBie opened this issue 12 years ago • 1 comments

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.

FrankBie avatar Jun 24 '12 18:06 FrankBie

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!

juanique avatar Jun 24 '12 21:06 juanique