I\'d like to save my files using the primary key of the entry.
Here is my code:
def get_nzb_filename(instance, filename): if not instance.pk:
Ty, is there a reason you rolled your own slugify filter?
Django ships with a built-in slugify filter, you can use it like so:
slugify
from django.template.defaultfilters import slugify slug = slugify(some_string)
Not sure if you were aware it was available to use...