Skip to content

Code typo in docs (easy fix) #147

@taivo

Description

@taivo

In section "Adding Specs to a Model" of the "Getting Started" page, the processed_image field should be defined with ProcessedImageField instead of ImageSpecField

from django.db import models
from imagekit.models.fields import ProcessedImageField

class Photo(models.Model):
    processed_image = ImageSpecField(format='JPEG', options={'quality': 90})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions