mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Use model to toggle research mode
Just a nice bit of encapsulation, rather than passing `current_service` through to a method on `current_service`.
This commit is contained in:
@@ -78,6 +78,11 @@ class Service():
|
||||
|
||||
self.update_with_properties(data)
|
||||
|
||||
def toggle_research_mode(self):
|
||||
self.update_with_properties({
|
||||
'research_mode': not self.research_mode,
|
||||
})
|
||||
|
||||
@property
|
||||
def trial_mode(self):
|
||||
return self._dict['restricted']
|
||||
|
||||
Reference in New Issue
Block a user