Have a few of the basic admin pages working after switching to the API+View pattern.

This commit is contained in:
Zed A. Shaw 2025-07-16 01:06:14 -04:00
parent fa7f886a59
commit 2b40d6fdc3
9 changed files with 188 additions and 29 deletions

View file

@ -45,9 +45,9 @@ func TestAdminIndexPage(t *testing.T) {
for i, row := range all_rows { fmt.Println("row", i, row) }
assert.Equal(20, len(all_rows))
first_row := all_rows[0]
first_row := all_rows[0].(*data.User)
result, err := admin.Get(table, model, first_row.FieldByName("Id").Int())
result, err := admin.Get(table, model, int64(first_row.Id))
if err != nil { fmt.Println("ERROR", err) }
fmt.Println("TABLE: ", result)