File: models.py

package info (click to toggle)
drf-extensions 0.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,308 kB
  • sloc: python: 7,421; makefile: 11
file content (12 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
from django.db import models


class KeyConstructorUserProperty(models.Model):
    name = models.CharField(max_length=100)


class KeyConstructorUserModel(models.Model):
    property = models.ForeignKey(
        KeyConstructorUserProperty,
        on_delete=models.CASCADE
    )