scrapy-djangoitem icon indicating copy to clipboard operation
scrapy-djangoitem copied to clipboard

Django item based on a Form instead of a Model?

Open jschilling1 opened this issue 8 years ago • 1 comments

I need a few temporary fields aside from the ones in the model. It would be super awesome if DjangoItem could inherit from a Form where those extra fields and their validation specs would be defined. The Form itself would be based on a Model using Django's FormModel. This would also allow to specify 'fields' to be inherited by the Form in case any need to be excluded. In essence this would be a ScrapyForm :)

jschilling1 avatar Jan 01 '16 01:01 jschilling1

+1 for this.

For large datasets, knowing if a record has changed is trivial using form.has_changed(). This can save a lot of processing.

jeffcjohnson avatar Mar 23 '17 14:03 jeffcjohnson