Could you please advice how to set foreign-key to "NULL"? I the following example I want to override delete method in order to not delete images but instead set their FK to "NULL" in order to recover and reconnect them with the parent objects later on.
def delete(self, using=None, keep_parents=False):
self.foreighnkey = None # foreighnkey is the fk field's name
self.save()
# https://stackoverflow.com/questions/4446652/django-how-to-set-a-field-to-null
# doesn't work this way
P.S. Parent objects will stay intact, so that use their delete methods is not an option