from django.db import models

# Create your models here.
class Event(models.Model):
  id_source = models.IntegerField()
  source = models.CharField()
  date_start = models.DateTimeField()
  date_end = models.DateTimeField()
  category = models.TextField()
  title = models.TextField()
  location = models.TextField()
  venue = models.TextField()
  longitude = models.FloatField()
  latitude = models.FloatField()
  poster = models.ImageField()

class Picture(models.Model):
  event = models.ForeignKey(Event)
  hue = models.IntegerField()
  # other img properties

class Mosaic(models.Model):
  event = models.ForeignKey(Event)

class Mosaic_cell(models.Model):
  mosaic = models.ForeignKey(Mosaic)
  picture = models.ForeignKey(Picture)
  row = models.IntegerField()
  column = models.IntegerField()
from django.db import models

# Create your models here.
class Event(models.Model):
  id_source = models.IntegerField()
  source = models.CharField(max_length=2)
  date_start = models.DateTimeField()
  date_end = models.DateTimeField()
  category = models.TextField()
  title = models.TextField()
  location = models.TextField()
  venue = models.TextField()
  longitude = models.FloatField()
  latitude = models.FloatField()
  poster = models.ImageField()

class Picture(models.Model):
  event = models.ForeignKey(Event)
  hue = models.IntegerField()
  # other img properties

class Mosaic(models.Model):
  event = models.ForeignKey(Event)

class Mosaic_cell(models.Model):
  mosaic = models.ForeignKey(Mosaic)
  picture = models.ForeignKey(Picture)
  row = models.IntegerField()
  column = models.IntegerField()

remove path from Model Picture