Hi,

On the following model:

class Object(meta.Model):
    created = meta.DateTimeField(auto_now_add=True)
    account = meta.ForeignKey(Account)
    title = meta.CharField(maxlength=200)
    ...

When I do:
new_object = account_obj.add_object(title='foo')

My new_object.title=='foo' is True, but it's new_object.created date is
None. So, if I continue to do:

new_object.title='bar'
new_object.save()

I will recieve an error. I currently do:

new_object = objects.get_object(pk=new_object.id)

Just to refresh my new_object and be able to save it again if needed.

Best regards,
Sia


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to