Thank you it worked.
Much appreciated.
Regards,
Shazia
On Wed, Jul 26, 2017 at 5:47 AM, M Hashmi wrote:
> Nothing wrong with your function based view. Just try to fill data in DB
> field. It will work. Because you don't have any record in DB. Try to use
> 'get_or_create' function.
>
>
> M
>
>
Nothing wrong with your function based view. Just try to fill data in DB
field. It will work. Because you don't have any record in DB. Try to use
'get_or_create' function.
M
On Wed, Jul 26, 2017 at 4:50 AM, Shazia Nusrat
wrote:
> Hi,
>
> I have a simple model like below:
>
> class Artists(mode
Hi,
I have a simple model like below:
class Artists(models.Model):
name = models.CharField(max_length=200)
description = models.TextField()
def __unicode__(self):
return self.name
I am trying to call it in my view like below:
def artistdetail(request, id):
3 matches
Mail list logo