Forms ===== The ``shares`` app provides a single user-facing form -- the share creation / edit form. It is one of the per-app subclasses of :class:`~richy.core.forms.BaseUserItemForm` (see :doc:`/modules/core/forms`), narrowed to :class:`Share` and extended with a Yahoo Finance ticker resolution check. UserShareForm ------------- Concrete share variant of :class:`~richy.core.forms.BaseUserItemForm`. Sets ``item_model = Share`` and layers a Yahoo Finance ticker resolution check on top of the inherited duplicate / uppercase symbol validation -- if the entered symbol returns no prices for the past day, the form raises a validation error rather than letting an unknown ticker reach the database. .. autoclass:: richy.shares.forms.UserShareForm :show-inheritance: .. automethod:: richy.shares.forms.UserShareForm.clean_symbol