Ah thank you!
I was also putting permissions inside BaseModel.Meta.permissions
where BaseModel.Meta.abstract = True.
When I put permissions inside MyModel.Meta.permissions, it showed up
after flushing out and re-syncdb.

I guess I will repeat permissions for each derived model class.

Thank you again.
Sam.


On Mon, Aug 17, 2009 at 3:47 AM, fabrix<fabrix...@gmail.com> wrote:
>
> On Aug 16, 2:29 pm, sam lee <skyn...@gmail.com> wrote:
>> I run syncdb and runserver
> [...]
>> But I don't see the myapp | test_perm listed under Permissions field.
>
> permissions are stored in db, syncdb doesn't alter existing tables, so
> your permission will not  show up in your admin.
>
> As the Fu..Funny Maunal say:
>
> http://docs.djangoproject.com/en/dev/ref/django-admin/#syncdb
>
> "Syncdb will not alter existing tables
>
> syncdb will only create tables for models which have not yet been
> installed. It will never issue ALTER TABLE statements to match changes
> made to a model class after installation. Changes to model classes and
> database schemas often involve some form of ambiguity and, in those
> cases, Django would have to guess at the correct changes to make.
> There is a risk that critical data would be lost in the process.
>
> If you have made changes to a model and wish to alter the database
> tables to match, use the sql command to display the new SQL structure
> and compare that to your existing table schema to work out the
> changes.
> "
>
> or.. you can try discarding the permission table and redo a syncdb,
> but i can't assicure you that preexisting permissions assigned to
> users will be conserved...
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to