Skip to content

Instantly share code, notes, and snippets.

@devmessias
Created December 18, 2014 15:11
Show Gist options
  • Save devmessias/9cffa2c14051b741691c to your computer and use it in GitHub Desktop.
Save devmessias/9cffa2c14051b741691c to your computer and use it in GitHub Desktop.
name = models.CharField(max_length=32)
description = models.TextField(blank=True,
help_text='Seria Bom voce inserir uma descricao')
user=models.CharField(max_length=32)
img = ProcessedImageField(upload_to='services',
processors=[ResizeToFill(200, 200)],
format='JPEG',
options={'quality': 60})
geometry = models.PointField(srid=4326)
objects = models.GeoManager()
added = models.DateTimeField(auto_now_add=True)
updated = models.DateTimeField(auto_now=True)
@raphapassini
Copy link

Na linha número 4, substitua por

user = models.ForeignKey("auth.User")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment