Commit previo a migrate el nuevo modelo Process

parent fd79fa26
......@@ -5,9 +5,10 @@ import datetime
#from django.contrib.auth.models import User
#from buscador.models import Investigador, Reto
platforms = [
("vegIndex","Vegetation index"),
("sentinel2","Classification scene"),
("waterBodies","Water bodies"),
("urbanSprawl","Urban sprawl")
("urbanSprawl","Urban sprawl"),
("vegIndex","Vegetation index")
]
#ALOS, A3, AIRSAR, AS, ERS-1, E1, ERS-2, E2, JERS-1, J1, RADARSAT-1, R1, SEASAT, SS, Sentinel-1A, SA, Sentinel-1B, SB, SMAP, SP, UAVSAR, UA.
class ASFSearchForm(forms.Form):
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-02-05 16:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0009_auto_20180831_2103'),
]
operations = [
migrations.CreateModel(
name='Process',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('tag', models.CharField(max_length=50)),
],
),
]
......@@ -48,6 +48,12 @@ class CartProduct(models.Model):
purchased = models.NullBooleanField()
# modelo para los procesos del sizebar del view map
class Process(models.Model):
tag = models.CharField(max_length=50)
# class Purchase(models.Model):
# user = models.ForeignKey(User, on_delete=models.CASCADE)
# pur_date = models.DateTimeField(auto_now=True) ## transaction date
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment