Thursday, April 27, 2017

first q

Hello
I am a new in geodjango and I find this

class Incidences(models.Model):
    name = models.CharField(max_length=50)
           location = models.PointField(srid=4326)
    objects = models.GeoManager()

    def __unicode__(self):
        return self.name

    class Meta:
        verbose_name_plural =" Incidences"



Can I add extra fields or not
thank you

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMwQo49Q2EatSTBrNgOHOUruT25x0q4QZ%2BhgfvHpKC3Eio-NQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment