Child: [a4d8c3] (diff)

Download this file

models.py    16 lines (11 with data), 548 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
from django.db import models
class Entity(models.Model):
name = models.CharField(max_length=200)
search_ui = models.TextField()
class SearchConfiguration(models.Model):
proxy_url = models.CharField(max_length=300)
proxy_port = models.CharField(max_length=10)
proxy_user = models.CharField(max_length=50)
proxy_password = models.CharField(max_length=50)
# active_search = quale classe implementa la entity corrente
# http://stackoverflow.com/questions/372042/difference-between-abstract-class-and-interface-in-python