Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Environment(m.Model):
- slug = m.SlugField(primary_key=True)
- name = m.CharField(max_length=32)
- class Session(m.Model):
- environment = m.ForeignKey(Environment, on_delete=m.PROTECT)
- class Session(m.Model):
- environment = m.SlugForeignKey()
Add Comment
Please, Sign In to add comment