Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes #7 code review changes in model
  • Loading branch information
Angeluz-07 committed Mar 11, 2020
commit 44092ef05ecd33dfb4a971dd956cb6a3389e6682
6 changes: 3 additions & 3 deletions time_tracker_api/technologies/technologies_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
description='Name of the technology'
),
'created_at': fields.Date(
title='Date',
title='Created',
description='Date of creation'
),
'created_by': fields.String(
required=True,
title='Type',
max_length=30,
title='Creator',
max_length=64,
description='Id of user who first added this technology',
),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, let's move these kinds of fields that are generated after creation, i.e. created_at, created_by, tenant_id, etc., to a model called technology_response, this way you will not require them when the technology is being created but this has to be autogenerated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those would be those ReadOnly fields

})
Expand Down