The ArtworkForm AND the full view code would be helpful, yes
also, maybe you'll want to install django-extensions, werkzeug, and
run your devserver with runserver_plus, that'll give you full
debugging capabilities on your browser, and will be able to see what's
each object (that instace object, sp
Like the code for ArtworkForm
On 7/26/12, Babatunde Akinyanmi wrote:
> Looks good to me. Are you sure have shown us all the relevant parts of
> your code?
>
> On 7/25/12, Deathweasel wrote:
>> Hello, guys.
>> This is Django 1.4.
>>
>> I have this code from my view:
>>
>> my_art = ArtworkMode
Looks good to me. Are you sure have shown us all the relevant parts of
your code?
On 7/25/12, Deathweasel wrote:
> Hello, guys.
> This is Django 1.4.
>
> I have this code from my view:
>
> my_art = ArtworkModel.objects.get(id=pk)
> comments = CommentModel.objects.filter(artwork=pk)
> artForm = Ar
Hello, guys.
This is Django 1.4.
I have this code from my view:
my_art = ArtworkModel.objects.get(id=pk)
comments = CommentModel.objects.filter(artwork=pk)
artForm = ArtworkForm(instance=my_art)
...
These models:
class ArtworkModel(models.Model):
"""
This class contains the informat
4 matches
Mail list logo