Could anybody help me out as I am new to Django.
*In my model:*
from django.db import models
class Employees(models.Model):
empId = models.AutoField(primary_key=True)
empName = models.CharField(max_length=200)
empEmail = models.EmailField()
empMob = models.CharField(max_length=200)
empAddr = models.TextField()
empLat = models.DecimalField(max_digits=9,decimal_places=6)
empLong = models.DecimalField(max_digits=9,decimal_places=6)
empDOB = models.DateField()
zval = models.IntegerField(default=0)
def __str__(self):
return self.empName
In the z value field i need to insert the z curve value calculated from
latitude and longitude. where should I write the code? In models.py or
somewhere else?
--
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 [email protected].
To post to this group, send email to [email protected].
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/60d32bc0-59c0-4467-93df-1c0072c7e5c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.