mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-22 17:54:56 +02:00
18 lines
371 B
Python
18 lines
371 B
Python
from django.db import models
|
|
|
|
|
|
class SearchHistory(models.Model):
|
|
query = models.CharField(max_length=1000)
|
|
|
|
def __str__(self):
|
|
return self.query
|
|
|
|
|
|
class Project(models.Model):
|
|
id = models.AutoField(primary_key=True)
|
|
name = models.CharField(max_length=500)
|
|
slug = models.SlugField(unique=True)
|
|
|
|
def __str__(self):
|
|
return self.slug
|