Ticket #2416: 2416.diff
File 2416.diff, 737 bytes (added by , 18 years ago) |
---|
-
models.py
243 243 raise SiteProfileNotAvailable 244 244 try: 245 245 app_label, model_name = settings.AUTH_PROFILE_MODULE.split('.') 246 models.get_models() # burn in cache 246 247 model = models.get_model(app_label, model_name) 247 self._profile_cache = model._default_manager.get( user__id__exact=self.id)248 self._profile_cache = model._default_manager.get(pk=self.id) 248 249 except (ImportError, ImproperlyConfigured): 249 250 raise SiteProfileNotAvailable 250 251 return self._profile_cache