Hi,
When i had a same problem for my imagefield when ever user deletes a
image, i use to get the path of the image from the db delete the image
record in db and delete the image via os.system('rm image_path') from
media path.
Thanks,
Lokesh
On Saturday, 22 February 2014 18:34:47
On Sun, Feb 23, 2014 at 10:45 PM, Federico Capoano wrote:
> I found this on django's blog:
>
>
> https://www.kickstarter.com/projects/mjtamlyn/improved-postgresql-support-in-django
>
> Very interesting!
>
> Anybody knows if they intend to redevelop everything from
I think the easiest way would be to have a timestamp var on the model
and then a simple method that uses datetime?
Also, check out django-model-utils - it has some nice timestamped model options
https://django-model-utils.readthedocs.org/en/latest/
cheers
L.
On 24 February 2014 01:59,
I would like to enable a user to insert and modify a record in a django model
for a specific stretch of time, say one hour, and,when this time's up (for
that specific record), the user shouldn't be allowed to modify or delete the
record. Another user (kind of a superuser) with higher
I found this on django's blog:
https://www.kickstarter.com/projects/mjtamlyn/improved-postgresql-support-in-django
Very interesting!
Anybody knows if they intend to redevelop everything from scratch or reuse
and improve existing implementations?
Federico
--
You received this message because
5 matches
Mail list logo