Hi Neto,

> Den 22. apr. 2016 kl. 06.59 skrev Neto <paulosouzamac...@gmail.com>:
> 
> [...]
> class ActionLog(Log):
>     action = models.ForeignKey('Action', on_delete=models.SET_NULL)
> 
> [...]
> 
> ActionLog.objects.create(account=account, action=action)

Something's wrong with your example. The ActionLog class only has an 'action' 
field, but you're creating an ActionLog instance as if it has both 'action' and 
'account'.

Erik

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/B2B07CF6-A91A-4162-900B-0DF4E0F9151F%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to