diff --git a/frontend/templates/libraryauth/edit.html b/frontend/templates/libraryauth/edit.html index 1ce6d117..94c3caca 100644 --- a/frontend/templates/libraryauth/edit.html +++ b/frontend/templates/libraryauth/edit.html @@ -32,7 +32,7 @@

Library Username: {{ form.instance.user }}

Library Email: {{ form.instance.user.email }}

{% else %} -

Library Username: {{ form.username.errors }}{{ form.username }} This will be the Unglue.it username for the library. You'll be able to log in as the library to do things like setting links making book lists.

+

Library Username: {{ form.username.errors }}{{ form.username }} This will be the Unglue.it username for the library. You ( {{ request.user }} ) will be able to log in as the library to do things like setting links making book lists.

Library Email: {{ form.email.errors }}{{ form.email }} The notification address for the library.

{% endif %} @@ -49,14 +49,15 @@ {% else %}
  • This library has not yet been approved by Unglue.it staff. Please make sure that a library agreement has been executed.
  • {% endif %} -
  • Go to {{ library }} Page
  • +
  • Go to {{ library }}'s page
  • +
  • Go to {{ library.user }}'s user page
  • {% ifequal request.user library.user %} -
  • You are logged in as the library user. You can...
  • +
  • You are logged in as the library user ( {{ library.user }} ). You can...
  • ... edit the Profile Settings or ...
  • ... configure the library's account
  • {% else %} {% ifequal request.user library.owner %} -
  • To set links and tagline, configure the account, and build book lists for {{ library }}, first click here to log in as the library user
  • +
  • To set links and tagline, configure the account, and build book lists for {{ library }}, first

    log in as {{ library.user }}
  • {% else %}
  • {{ library.owner }} is authorized to set links and tagline, configure the account, and build book lists for {{ library }}.
  • {% endifequal %} diff --git a/libraryauth/views.py b/libraryauth/views.py index 9d02610b..755eb65c 100644 --- a/libraryauth/views.py +++ b/libraryauth/views.py @@ -107,6 +107,7 @@ class CreateLibraryView(BaseLibraryView, CreateView): user.save() form.instance.user = user form.instance.save() + form.instance.add_user(user) context_data = self.get_context_data(form=form) context_data['status'] = 'Library Updated' return HttpResponseRedirect(reverse('library_admin',args=[form.instance.id]))