Skip to content

Fix erroneous code reference in tutorial#237

Open
sotlampr wants to merge 1 commit into
django-nonrel:masterfrom
sotlampr:patch-1
Open

Fix erroneous code reference in tutorial#237
sotlampr wants to merge 1 commit into
django-nonrel:masterfrom
sotlampr:patch-1

Conversation

@sotlampr

Copy link
Copy Markdown

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