[Pulp-dev] Adding Model.created.

David Davis daviddavis at redhat.com
Mon Feb 12 20:52:49 UTC 2018

+1. Also, wondering if we should add a Model.last_updated field as well.


On Mon, Feb 12, 2018 at 12:22 PM, Jeff Ortel <jortel at redhat.com> wrote:

> A few of our models have a field:
> created = models.DateTimeField(auto_now_add=True)
> To support ordering needed by a FilePlugin use case, I'm planning to add
> Content.created as it seems generally useful and I believe will be needed
> by most plugins.  This raises a more general question: should we add
> Model.created instead?  Knowing when most things get created seems
> generally useful.  For example, knowing when an artifact got created tells
> uses when it got downloaded.  Things like that.
> Thoughts?
> _______________________________________________
> Pulp-dev mailing list
> Pulp-dev at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20180212/cd0c9209/attachment.htm>

More information about the Pulp-dev mailing list