On 11/19/2016 10:51 AM, Stephen Finucane wrote:
This is apparently the correct way to rename fields, and will ensure a
future API version that supports writes will work correctly.
Signed-off-by: Stephen Finucane <[email protected]>
Cc: Andy Doan <[email protected]>
Much better:
Reviewed-by: Andy Doan <[email protected]>
patchwork/api/project.py | 15 +++++++--------
+ # TODO(stephenfin): These should be renamed at the model layer
Doesn't seem worth it to me.
+ link_name = CharField(max_length=255, source='linkname')
+ list_id = CharField(max_length=255, source='listid')
+ list_email = CharField(max_length=255, source='listemail')
_______________________________________________
Patchwork mailing list
[email protected]
https://lists.ozlabs.org/listinfo/patchwork