yeah, Ryan's comment definitely makes sense
On Thursday, 23 March 2023 at 20:22:17 UTC+5:30 Ryan Nowakowski wrote:
> Your field is called e_resource with an underscore but you're trying to
> reference it using a dash.
>
>
> On March 22, 2023 11:40:00 PM CDT, Shubhi Pandey
> wrote:
>>
>> the er
the error is:
django.core.exceptions.FieldError: Unknown field(s) (e-resource) specified
for Post
models.py
class Post(models.Model):
e_resource = models.FileField(null=True,
blank=True,
validators=[FileExtensionValidator( ['pdf'] ) ],
u
2 matches
Mail list logo