My Data Service can also do a cone Search!
'''), Fieldset( 'Cone Search', Div( Div( 'ra', 'radius', css_class='col', ), Div( 'dec', 'units', css_class='col', ), css_class="form-row", ) ), return layout Target Results Table: +++++++++++++++++++++ By default, all of your results except for ``reduced_datums`` will be displayed in the table. You may wish to customize this display without compromising your results. You can do this by adding a ``query_results_table``. This is specialized table partial for displaying query results for this data service. To implement this you should set the ``query_results_table`` value in your Data service pointed to the appropriate partial: .. code-block:: python :caption: my_dataservice.py :linenos: from tom_dataservices.dataservices import DataService from my_dataservice.forms import MyServiceForm class MyDataService(DataService): """ This is an Example Data Service with the minimum required functionality. """ name = 'MyService' # The path to a specialized table partial for displaying query results query_results_table = 'my_dataservice/partials/myservice_query_results_table.html' ... .. code-block:: html :caption: my_dataservice/partials/myservice_query_results_table.html :linenos:| Name | RA | Dec | |
|---|---|---|---|
| {{ result.name}} | {{ result.ra }} | {{ result.dec }} |