Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Velotio - HashiCorp Consul Part 2 - Django models for our example application
from djongo import models
class Blog(models.Model):
name = models.CharField(max_length=100)
tagline = models.TextField()
class Meta:
abstract = True
class Entry(models.Model):
blog = models.EmbeddedModelField(
headline = models.CharField(max_length=255)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment