Re: Sybase X Django

2020-06-17 Thread Henri GERARDIN
I made a change in my sql.ini and now i get this mistake : [SAP][ASE ODBC Driver][Adaptive Server Enterprise]Function 'SYSDATETIME' not found. If this is a SQLJ function or SQL function, use sp_help to check whether the object exists Le mercredi 17 juin 2020 à 11:55:51 UTC+2, Henri

Sybase X Django

2020-06-17 Thread Henri GERARDIN
Hello everybody, I am trying to connect my Django project with a sybase database but i always get this mistake : Cannot locate reference to the DB server specified in DSURL. Here is my connection String : 'apidata': { 'ENGINE': "sql_server.pyodbc", 'HOST': "dsp_adt_djan

Re: Cannot overwrite 'get_fieldsets' in custom UserAdmin

2015-06-29 Thread Henri
f my custom one. Regards, Henri Am Montag, 29. Juni 2015 16:15:16 UTC+2 schrieb Felippe Raposo: > > Henri, can you set a "pdb.set_trace" or print something at the beginning > of your "get_fieldsets" to see if it is being called or not? > > 2015-06-28 6:58 GMT-

Re: Cannot overwrite 'get_fieldsets' in custom UserAdmin

2015-06-29 Thread Henri
red Am Sonntag, 28. Juni 2015 09:48:35 UTC+2 schrieb Lagovas Lagovas: > > first of all you need unregister default django models and then register > yours AdminModel like: > admin.site.unregister(User) > admin.site.register(User, CustomUserAdmin) > > > пятница, 26 июня 2015

Re: Cannot overwrite 'get_fieldsets' in custom UserAdmin

2015-06-28 Thread Henri
As I use a custom user model the default django user model is not registered. When I try to unregister it I get an error. See example in the django docs: https://docs.djangoproject.com/en/1.6/topics/auth/customizing/#a-full-example. Regards, Henri -- You received this message because you

Re: Cannot overwrite 'get_fieldsets' in custom UserAdmin

2015-06-26 Thread Henri
x27;, None) if f is not None: f.queryset = f.queryset.select_related('content_type') def clean_password(self): # Regardless of what the user provides, return the initial value. # This is done here, rather than on the field, because the # field does not have access to the initial value r

Cannot overwrite 'get_fieldsets' in custom UserAdmin

2015-06-25 Thread henri
I'm using a custom user model and a custom UserAdmin. I try do overwrite the 'get_fieldsets' method to change some fields and hide some others, bud django admin still uses the 'get_fieldsets' method from django.contrib.auth.admin.UserAdmin. My CustomUserAdmin Class: from django.contrib.auth.ad

django-achievements: registering achievements

2013-02-11 Thread Henri
Newbie request here - could anyone elaborate on/explain the following quote from the django-achievements documentation. I'm having a hard time wrapping my head around it.Thanks! --- To register it i

agon_ratings newbie help

2012-05-30 Thread Henri
I'm new to django and AJAX-level web development, so pardon my non-orthodox lingo :) Any ideas what I might be doing wrong if the AJAX form for rating in agon_ratings added per instructions ( http://agon-ratings.readthedocs.org/en/latest/usage.html) doesn't seem to really do much? I get the sta