We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
on_delete
class Entry(models.Model): title = models.CharField(max_length=500) author = models.ForeignKey('auth.User') body = models.TextField() created_at = models.DateTimeField(auto_now_add=True, editable=False) modified_at = models.DateTimeField(auto_now=True, editable=False)
on_delete is required since django 1.9 and it raises type error
TypeError: __init__() missing 1 required positional argument: 'on_delete'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
on_delete is required since django 1.9 and it raises type error
TypeError: __init__() missing 1 required positional argument: 'on_delete'
The text was updated successfully, but these errors were encountered: