On Thu, Jun 23, 2011 at 11:27 PM, Satyajit Sarangi
wrote:
> My models.py is this
>
> class PermiLayer(models.Model):
> user = models.ForeignKey(User)
> table = models.ForeignKey(ContentType)
> permi = models.IntegerField()
>
> My views.py is this
>
> perm.table =
> ContentType.objects.get
On Thursday, June 23, 2011 11:27:53 PM UTC+1, Satyajit Sarangi wrote:
>
> My models.py is this
>
> class PermiLayer(models.Model):
> user = models.ForeignKey(User)
> table = models.ForeignKey(ContentType)
> permi = models.IntegerField()
>
> My views.py is this
>
> perm.table =
>
My models.py is this
class PermiLayer(models.Model):
user = models.ForeignKey(User)
table = models.ForeignKey(ContentType)
permi = models.IntegerField()
My views.py is this
perm.table =
ContentType.objects.get(app_label="OsmMap",model="osmlayers")
Perm.table is storing an integer .
3 matches
Mail list logo