models.py 213 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
from django.contrib.auth.models import User
from django.db.models import Model, ForeignKey

from vm.models import Instance


class Favourite(Model):
    instance = ForeignKey(Instance)
    user = ForeignKey(User)