Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are two flow types: central government and everything else This is used in various places as a fork/decision point It is determined by registrant type - If the value is "Central government department or agency" or "Non-departmental body - also known as an arm's length body" then the flow type is considered as government flow type Hence added a method to determine whether it is central government flow type and it will be set only in the RegistrantType view as it is derived by Registrant Type and it will be used everywhere it is needed. This value of flow type is being saved in the navigation_data in session to distinguish from the other business data Also added a utility method clean_registration_data_field_and_save_in_session because this is used in many views and it will save us boilerplate code Although there are many registrant types, but from one viewpoint, they fall into either central government or everything else This distinction is used in various places as a fork/decision point It is determined by registrant type - If the value is "Central government department or agency" or "Non-departmental body - also known as an arm's length body" then they are considered as central government Hence added a method to determine whether it is central government Also added a utility method add_to_session because this is used in many views and it will save us boilerplate code
- Loading branch information