fix: remove the Users field for create/edit Person
This commit is contained in:
parent
90784cecb2
commit
6fd4e15ca2
1 changed files with 3 additions and 1 deletions
|
|
@ -96,7 +96,9 @@ class PersonView(MasterView): # pylint: disable=abstract-method
|
|||
f.remove("full_name")
|
||||
|
||||
# users
|
||||
if self.viewing:
|
||||
if self.creating or self.editing:
|
||||
f.remove("users")
|
||||
elif self.viewing:
|
||||
f.set_grid("users", self.make_users_grid(person))
|
||||
|
||||
def make_users_grid(self, person):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue