Opened 5 years ago

Closed 5 years ago

#12548 closed (duplicate)

Delete FileField content in Admin

Reported by: Fugazi Owned by: nobody
Component: contrib.admin Version: 1.1
Severity: Keywords: FileField delete button
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Hello,

This is my model:

class Company(models.Model):
    site = models.ForeignKey(Site, unique=True)
    presentation = models.TextField(max_length=250)
    phone_number = models.CharField(max_length=15, verbose_name="numéro de téléphone", blank=True)
    address = models.TextField(max_length=100, verbose_name="adresse", blank=True)
    presentation_movie = models.FileField(upload_to='movies', blank=True)

A delete button would be useful beside FileField in Admin (when blank=True) to delete FileField content without delete all class instance.

Regards,

F.

Change History (1)

comment:1 Changed 5 years ago by kmtracey

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

This is the same request as #7048.

Note: See TracTickets for help on using tickets.
Back to Top