Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django item based on a Form instead of a Model? #9

Open
jschilling1 opened this issue Jan 1, 2016 · 1 comment
Open

Django item based on a Form instead of a Model? #9

jschilling1 opened this issue Jan 1, 2016 · 1 comment

Comments

@jschilling1
Copy link

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 :)

@jeffcjohnson
Copy link

+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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants