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

Fix erroneous code reference in tutorial #237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix erroneous code reference in tutorial #237

wants to merge 1 commit into from

Conversation

sotlampr
Copy link

From:

from djangotoolbox.fields import EmbeddedModelField
    tags = ListField()
    comments = ListField(EmbeddedModelField('Comment')) # <---


class Comment(models.Model):
    created_on = models.DateTimeField(auto_now_add=True)
    [...]

to:

from djangotoolbox.fields import EmbeddedModelField

class Comment(models.Model):
    created_on = models.DateTimeField(auto_now_add=True)
    [...]

```
from djangotoolbox.fields import EmbeddedModelField
    tags = ListField()
    comments = ListField(EmbeddedModelField('Comment')) # <---


class Comment(models.Model):
    created_on = models.DateTimeField(auto_now_add=True)
    [...]
```

->

```
from djangotoolbox.fields import EmbeddedModelField

class Comment(models.Model):
    created_on = models.DateTimeField(auto_now_add=True)
    [...]
```
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

Successfully merging this pull request may close these issues.

1 participant