I need to do some debugging, because the permissions for one of my models are created wrongly. So I tried to find the piece of code where Django creates the permissions upon syncdb and writes them in the database, but I haven't been successful at all; maybe I just overlooked the right lines of code, but if somebody can point me out the right module / line of code where this happens I'd be very happy!
                +1 
                A: 
                
                
              Check out create_permissions; note that it is wired up to fire when it receives the post_syncdb signal.
                  Hank Gay
                   2010-06-09 13:30:16
                
              Thanks! Already thought it would run on post_syncdb, that's reason I wasn't quite sure where to look for it in the first place, as it could be really anywhere!
                  lazerscience
                   2010-06-09 13:50:22
                Yeah, I wound up having to use Google Code Search on it. I was expecting it to be in __init__.py or something.
                  Hank Gay
                   2010-06-09 14:18:25