from django.conf import settings
from django.db import models

from db.models.utils import DiffModel, NameableModel


class Search(DiffModel, NameableModel):
    """A saved search query."""
    project = models.ForeignKey(
        'db.Project',
        on_delete=models.CASCADE,
        related_name='searches')
    user = models.ForeignKey(
        settings.AUTH_USER_MODEL,
        on_delete=models.CASCADE,
        related_name='+')
    query = models.TextField()
    is_default = models.BooleanField(default=False)

    class Meta:
        app_label = 'db'
        unique_together = (('project', 'name'), )

9e503fd8f709f46073c19792d55a960c9070afff
<mask token>


class Search(DiffModel, NameableModel):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        app_label = 'db'
        unique_together = ('project', 'name'),

<mask token>


class Search(DiffModel, NameableModel):
    <mask token>
    project = models.ForeignKey('db.Project', on_delete=models.CASCADE,
        related_name='searches')
    user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.
        CASCADE, related_name='+')
    query = models.TextField()
    is_default = models.BooleanField(default=False)


    class Meta:
        app_label = 'db'
        unique_together = ('project', 'name'),

<mask token>


class Search(DiffModel, NameableModel):
    """A saved search query."""
    project = models.ForeignKey('db.Project', on_delete=models.CASCADE,
        related_name='searches')
    user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.
        CASCADE, related_name='+')
    query = models.TextField()
    is_default = models.BooleanField(default=False)


    class Meta:
        app_label = 'db'
        unique_together = ('project', 'name'),

from django.conf import settings
from django.db import models
from db.models.utils import DiffModel, NameableModel


class Search(DiffModel, NameableModel):
    """A saved search query."""
    project = models.ForeignKey('db.Project', on_delete=models.CASCADE,
        related_name='searches')
    user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.
        CASCADE, related_name='+')
    query = models.TextField()
    is_default = models.BooleanField(default=False)


    class Meta:
        app_label = 'db'
        unique_together = ('project', 'name'),

from django.conf import settings
from django.db import models

from db.models.utils import DiffModel, NameableModel


class Search(DiffModel, NameableModel):
    """A saved search query."""
    project = models.ForeignKey(
        'db.Project',
        on_delete=models.CASCADE,
        related_name='searches')
    user = models.ForeignKey(
        settings.AUTH_USER_MODEL,
        on_delete=models.CASCADE,
        related_name='+')
    query = models.TextField()
    is_default = models.BooleanField(default=False)

    class Meta:
        app_label = 'db'
        unique_together = (('project', 'name'), )
