Fwd: Django template permissions not working when used inside the template of an inclusion tag

2019-08-12 Thread er
I am uncertain what is the source of the problem here and due to I doubt it is a bug, i checked what is available for django and thought the mailing list is a good place to post this question. You can see the issue better formatted here https://stackoverflow.com/questions/57451323/django-templat

makemigration detect error

2017-05-06 Thread Er. Rv Ranga
python manage.py makemigrations blog You are trying to add a non-nullable field 'body' to post without a default; we can't do that (the database needs something to populate existing rows). Please select a fix: 1) Provide a one-off default now (will be set on all existing rows with a null valu

SQL generated for ManyToManyField is incorrect with Django 1.2.1

2010-08-08 Thread Ersin Er
Hi, I was just trying the sample code from the Django Book 2nd Edition but the generated SQL script for the Books models are not correct. The Model code: http://dpaste.com/226416/ The generated SQL script for sqlite: http://dpaste.com/226417/ What's missing in the generated script is 'REFEREN

using FileField.delete_file to remove unused images

2007-12-11 Thread ER Yost
I am working on a project with the following: class Person(models.Model): # ... picture = models.ImageField(...) I'd like to give each Person the ability to delete images, and I'd like to remove deleted pictures from the filesystem once a person has deleted them. From what I can tell, th