In symfony, versioning a model was not terribly difficult. I had my own specialized brute-force way of doing this.
In my experience it’s been a lot easier to write python code than PHP code, so naturally I figured this would be an easy task. It was not. I suspect that it was not [...]
Filed under spindrop. |
Tags: django && models && php && python && symfony
One “trick” that propel offers you is tables with fields created_at and updated_at.
The fields are self explanatory and within Propel you just define them and they just do their business.
To simulate this in Django just do:
updated_at = models.DateTimeField(auto_now=True)
created_at = models.DateTimeField(auto_now_add=True)
auto_now automatically sets a field to the current time, and auto_now_add only does this if the [...]
Filed under spindrop. |
Tags: django && propel && symfony