1

I added the following to my model:

class Meta:
        db_table = 'history'
        permissions = (
            ("View", u"View history log"),
        )

And I ran syncdb but my content type wasn't added nor was there an entry made to the auth_permission table. I'm looking for a way to add this permission so I can give it to certain users.

Btw, I didn't have a admin.py file. I tried adding one to my application and I tried registering my History model but when I run syncdb still nothing.

Note:This is a legacy database.

hanleyhansen
  • 6,304
  • 8
  • 37
  • 73

1 Answers1

0

Figured it out. I forgot to add my own app to the list of INSTALLED_APPS. Found the answer here. Hope this helps someone!

Community
  • 1
  • 1
hanleyhansen
  • 6,304
  • 8
  • 37
  • 73