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):
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
2 matches
Mail list logo