Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Empty actions menu after createproject #210

Closed
rybesh opened this issue Mar 10, 2014 · 10 comments
Closed

Empty actions menu after createproject #210

rybesh opened this issue Mar 10, 2014 · 10 comments

Comments

@rybesh
Copy link
Member

rybesh commented Mar 10, 2014

After creating a new project, and logged in as superuser, my "actions" menu is empty. Without this I cannot do anything, really.

screen shot 2014-03-10 at 4 43 57 pm

@ptgolden
Copy link
Member

add yourself to the project

@ptgolden
Copy link
Member

(if you haven't). you'll probably have to do that on the command line, sorry

@rybesh
Copy link
Member Author

rybesh commented Mar 10, 2014

You mean via the django shell? Or is there a management command?

@ptgolden
Copy link
Member

The shell.

from editorsnotes.main.models import Project

u = User.objects.get(username=YOUR_USERNAME)
Project.objects.get().roles.get().group.add(u)

@rybesh
Copy link
Member Author

rybesh commented Mar 10, 2014

In [6]: Project.objects.get().roles.get().group.add(u)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/db/projects/editorsnotes-beta/lib/python2.7/site-packages/django/core/management/commands/shell.pyc in <module>()
----> 1 Project.objects.get().roles.get().group.add(u)

AttributeError: 'Group' object has no attribute 'add'

@rybesh
Copy link
Member Author

rybesh commented Mar 10, 2014

Also: do I need to do this for everyone I invite to the project?

@ptgolden
Copy link
Member

sorry, it's group.users.add

@ptgolden
Copy link
Member

no, you would invite them on the project roster page.

This is a part of things that needs a lot of work.

@ptgolden
Copy link
Member

Project invitations only work with people logging into Persona with an email that doesn't have an existing account on the site. That's not ideal, but doing something different would require a lot of moving parts that I can't lay out right now.

We can make additional accounts for this demonstration and discuss a better account creation system afterwards.

@ptgolden
Copy link
Member

The underlying issue is addressed in #211 and #212

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants