from django.db import models
import datetime

class GeoPhoto(models.Model):
    title = models.CharField(max_length=250)
    latitude=models.FloatField()
    longitude=models.FloatField()
    photo_url = models.CharField(max_length=500, unique=True)
    photo_thumbnail_url = models.CharField(max_length=500)
    date_added = models.DateField(default=datetime.datetime.now)

    def __str__(self):
        return self.title

class PresetList(models.Model):
    name = models.CharField(max_length=250)
    latitude=models.FloatField()
    longitude=models.FloatField()
    date_added = models.DateField(default=datetime.datetime.now)

    class Meta:
        unique_together = ('latitude', 'longitude')

    def __str__(self):
        return self.name

class FavList(models.Model):
    geophoto = models.ForeignKey(GeoPhoto, on_delete=models.CASCADE)
    date_added = models.DateField(default=datetime.datetime.now)

    def __str__(self):
        return self.geophoto.title

6377569c1d8b0671d8c7071e422be18d78be195e
<mask token>


class GeoPhoto(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class PresetList(models.Model):
    name = models.CharField(max_length=250)
    latitude = models.FloatField()
    longitude = models.FloatField()
    date_added = models.DateField(default=datetime.datetime.now)


    class Meta:
        unique_together = 'latitude', 'longitude'

    def __str__(self):
        return self.name


class FavList(models.Model):
    geophoto = models.ForeignKey(GeoPhoto, on_delete=models.CASCADE)
    date_added = models.DateField(default=datetime.datetime.now)

    def __str__(self):
        return self.geophoto.title

<mask token>


class GeoPhoto(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __str__(self):
        return self.title


class PresetList(models.Model):
    name = models.CharField(max_length=250)
    latitude = models.FloatField()
    longitude = models.FloatField()
    date_added = models.DateField(default=datetime.datetime.now)


    class Meta:
        unique_together = 'latitude', 'longitude'

    def __str__(self):
        return self.name


class FavList(models.Model):
    geophoto = models.ForeignKey(GeoPhoto, on_delete=models.CASCADE)
    date_added = models.DateField(default=datetime.datetime.now)

    def __str__(self):
        return self.geophoto.title

<mask token>


class GeoPhoto(models.Model):
    title = models.CharField(max_length=250)
    latitude = models.FloatField()
    longitude = models.FloatField()
    photo_url = models.CharField(max_length=500, unique=True)
    photo_thumbnail_url = models.CharField(max_length=500)
    date_added = models.DateField(default=datetime.datetime.now)

    def __str__(self):
        return self.title


class PresetList(models.Model):
    name = models.CharField(max_length=250)
    latitude = models.FloatField()
    longitude = models.FloatField()
    date_added = models.DateField(default=datetime.datetime.now)


    class Meta:
        unique_together = 'latitude', 'longitude'

    def __str__(self):
        return self.name


class FavList(models.Model):
    geophoto = models.ForeignKey(GeoPhoto, on_delete=models.CASCADE)
    date_added = models.DateField(default=datetime.datetime.now)

    def __str__(self):
        return self.geophoto.title

from django.db import models
import datetime


class GeoPhoto(models.Model):
    title = models.CharField(max_length=250)
    latitude = models.FloatField()
    longitude = models.FloatField()
    photo_url = models.CharField(max_length=500, unique=True)
    photo_thumbnail_url = models.CharField(max_length=500)
    date_added = models.DateField(default=datetime.datetime.now)

    def __str__(self):
        return self.title


class PresetList(models.Model):
    name = models.CharField(max_length=250)
    latitude = models.FloatField()
    longitude = models.FloatField()
    date_added = models.DateField(default=datetime.datetime.now)


    class Meta:
        unique_together = 'latitude', 'longitude'

    def __str__(self):
        return self.name


class FavList(models.Model):
    geophoto = models.ForeignKey(GeoPhoto, on_delete=models.CASCADE)
    date_added = models.DateField(default=datetime.datetime.now)

    def __str__(self):
        return self.geophoto.title

from django.db import models
import datetime

class GeoPhoto(models.Model):
    title = models.CharField(max_length=250)
    latitude=models.FloatField()
    longitude=models.FloatField()
    photo_url = models.CharField(max_length=500, unique=True)
    photo_thumbnail_url = models.CharField(max_length=500)
    date_added = models.DateField(default=datetime.datetime.now)

    def __str__(self):
        return self.title

class PresetList(models.Model):
    name = models.CharField(max_length=250)
    latitude=models.FloatField()
    longitude=models.FloatField()
    date_added = models.DateField(default=datetime.datetime.now)

    class Meta:
        unique_together = ('latitude', 'longitude')

    def __str__(self):
        return self.name

class FavList(models.Model):
    geophoto = models.ForeignKey(GeoPhoto, on_delete=models.CASCADE)
    date_added = models.DateField(default=datetime.datetime.now)

    def __str__(self):
        return self.geophoto.title
