Project

Profile

Help

Refactor #5457

Updated by dkliban@redhat.com over 4 years ago

pulpcore.app.models.Model has three fields[0] that all start with an _. All these fields need to drop the _ prefix from their names.  

 _id will become pulp_id id 
 _created will become pulp_created created 
 _last_updated will become pulp_last_updated last_updated 

 The URL field name, _href, is defined in the settings.py[0].  

 _href will become pulp_href 

 [0] https://github.com/pulp/pulpcore/blob/3c62889e0c01fe54de66c60147192a03cac73ab2/pulpcore/app/models/base.py#L21-L23 
 [1] https://github.com/pulp/pulpcore/blob/3c62889e0c01fe54de66c60147192a03cac73ab2/pulpcore/app/settings.py#L117

Back