Re: Inlineformset_factory and User model

2009-12-02 Thread Frank DiRocco
request.user will give you the User object from the django.contrib.auth.models, but Authors has no relation. If you slightly modify your Book model to make authors relate to the above module, you can eliminate the Authors Model and the "user" of you Book model. class Book(models.Model):

Inlineformset_factory and User model

2009-12-02 Thread saved...@gmail.com
Hello All! I am trying to have my users post multiple books via Inlineformset_factory. Basically, I am unable to do that automatically via the following code without having them select their name. I get an error saying that 'User has no attribute 'get''. Any help is much appreciated. Ken model