Re: subclassing UserCreationForm

2010-09-24 Thread Axel
) class StudentAdmin(UserAdmin): # ... add_form = StudentCreateForm Please, I am going crazy. There's probably a super-simple solution, but I don't seem to find it. And I feel horribly stupid right now. And it's several hours now, cause I can't let go - and I'm hor

Relationship question: What do I do wrong?

2010-09-18 Thread Axel Bock
ut of the same pool). The error is: "Accessor for field 'side1' clashes with related field 'SidesList.leg_set'." (the same error for side2). Any help here? I'm quite new to dango, so a little hint would be nice :) thanks a lot in advance, Axel. -- You received

Re: Relationship question: What do I do wrong?

2010-09-18 Thread Axel Bock
2010/9/18 bruno desthuilliers > > On 18 sep, 08:26, Axel Bock wrote: > > Now I get an error when compiling this. > > s/compiling/importing/ > yah, all right :) . > > Any help here? I'm quite new to dango, so a little hint would be > > nice :) >

Re: Relationship question: What do I do wrong?

2010-09-18 Thread Axel Bock
thanks for all the explanations! i had a look into the database tables - and they do just what i expected. so I just leave it at changing the referal property names ... thanks & greetings, Axel. 2010/9/18 bruno desthuilliers > On 18 sep, 16:23, Axel Bock wrote: > > 20

Re: Relationship question: What do I do wrong?

2010-09-18 Thread Axel Bock
t all. thanks & greetings! Axel. 2010/9/18 Steve Holden > On 9/18/2010 3:23 PM, werefr0g wrote: > > Hello, > > > > I was quite laconic previously in order to spare you my "english". Sorry > > if you found this rude. > > > > Well, you d

subclassing UserCreationForm

2010-09-23 Thread Axel Bock
lForm, overriding get_form(), and some other things), the form will only and inevitably show "username" and "password". And it's about two hours now. Help. Please. Thanks! Axel. -- You received this message because you are subscribed to the Google Groups "Django users

Re: subclassing UserCreationForm

2010-09-24 Thread Axel Bock
If they are all wrong, I REALLY think the API should not let people do this. If they are right, then I still lack an anwer for my problem - the single f*cked up field in the create student form, which I'd like to shoot on sight once it's there and then burn the ashes :) . (I have had not mu

Python unexpectedly quit

2010-09-24 Thread Axel Bock
#x27;, 'views.logout'), ) # views.py def logout(request): logout(request) return HttpResponseRedirect('/login') Anything wrong here? I must say, the framework for the people "with deadlines" is giving me a *really* hard time so far :) . Thanks in a

Re: subclassing UserCreationForm

2010-09-24 Thread Axel Bock
2010/9/24 Jason > > "Creating the relationship between User and UserInfo has some > implications I'd like to avoid on a model-level" > > Specifically what are you referring to here? Because anytime you > subclass in Django you are basically doing the exact thing in the > database behind the scene

Re: Python unexpectedly quit

2010-09-24 Thread Axel Bock
oh f... thanks. 2010/9/24 Scott Gould > > > def logout(request): > > logout(request) > > Infinite loop, no? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To u

Re: Python unexpectedly quit

2010-09-24 Thread Axel Bock
maybe I was a little bit out of sleep today :) . tried to get auth.User subclassing working til 4am in the morning ... and what do you mean with "not picky enough"? 2010/9/24 Steve Holden > On 9/24/2010 2:23 PM, Axel Bock wrote: > > Anything wrong here? I must say, th

Re: JavaScript with Dango

2010-09-26 Thread Axel Bock
coupoles Django with some Ajax libs to some extend, if that's what you want. I only had a short look and filed it for later. http://www.dajaxproject.com/ HTH, Axel. 2010/9/26 CrabbyPete > Yes. > > On Sep 26, 7:48 am, aug dawg wrote: > > Does Django work with JavaScript?

Formsets, forms and related editing

2010-09-28 Thread Axel Bock
rt here with the error "The Mission could not be created because the data didn't validate" legs =[f.save(commit=False) for f in LegFormSet(request.POST, prefix="legformset")] Are there any best practices when doing such kind of thing? Am I doing it wrong? thanks in advan

Question about cache

2006-05-15 Thread Axel Steiner
Hi all, I've set up the cache system of Django and it works fine, except one thing. Is it possible to reload or clean the cache, when there is a new record in the database? Thanks, Axel --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Question about cache

2006-05-16 Thread Axel Steiner
ode he wrote to see how he does this (not sure if the caching stuff is > in the code he has, but I suspect it will be). cool, that works perfectly :-) Thanks for the hint. Bye, Axel --~--~-~--~~~---~--~~ You received this message because you are subscribed to

remote_ident

2006-05-30 Thread Axel Steiner
t irregular. So one time I get the value and the next time not. I'm using Django with mod_python, so maybe the problem is related to mod_python? Thanks, Axel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: Caching in Django admin

2006-07-20 Thread Axel Steiner
decorators.cache import cache_page @cache_page(900) def myview(request): ... The argument for cache_page is the cache timeout in seconds. Bye, Axel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: Caching in Django admin

2006-07-20 Thread Axel Steiner
s for every application > I'm running, and makes me groan at the thought of keeping things > up-to-date. Do you mean the admin interface of Django? I think, it's not a good idea to cache admin pages. But yes, you have to add a decorator for each view, which s

create_update and manipulator

2006-03-13 Thread Axel Steiner
Hi, I'm trying to build a form with django.views.generic.create_update.create_object and I can't find a way to use a custom manipulator with it. Is it possible to pass a generic view a manipulator? Thanks, Axel --~--~-~--~~~---~--~~ You rec

Re: create_update and manipulator

2006-03-14 Thread Axel Steiner
Hi, > No, that's not currently possible. I'd recommend just writing your own > view -- it shouldn't take much code. I already thought this. Is it possible to provide this in a new version of Django? :-) Bye, Axel --~--~-~--~~~---~--~~ You

New to dj: relational limitations

2012-08-14 Thread Axel Rau
which is not acceptable. Questions: Is a work-around available? Can one be created? Perhaps a custom subclass of backends.postgresql_psycopg2.* ? Thanks vor listening, Axel --- PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius -- You received this message because you are subsc

Re: New to dj: relational limitations

2012-08-15 Thread Axel Rau
getting to know > Django's internals pretty well. :-) I will try and with the help of this list hopefully finally succeed. (-; Thanks, Axel --- PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius -- You received this message because you are subscribed to the Google Groups &

Re: New to dj: relational limitations

2012-08-19 Thread Axel Rau
o.forms.fields import * class NULLCharFieldF(CharField): def to_python(self, value): "Returns a none-empty Unicode object or None." if value in validators.EMPTY_VALUES: return None return smart_unicode(value) --- Next I will try to adapt thing

expand fieldset by choice

2012-08-26 Thread Axel Rau
In my admin site, I have a fieldset which depends on a choice. I would like to control expansion of the related fieldset by the choice instead of the standard widgets. How can I do this? Axel --- PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius -- You received this message

Re: expand fieldset by choice

2012-08-27 Thread Axel Rau
dels.DateField(_('Created'), auto_now_add=True) updated = models.DateField(_('Updated'), auto_now=True) remarks = models.TextField(_('Remarks'),null=True, blank=True) lifetime = TimedeltaDayFieldM(_('Lifetime of Data'), max_length=10) class M

Re: expand fieldset by choice

2012-08-27 Thread Axel Rau
t; Once you have your script ready you need to tell your admin form to use it, > read this > it explains how you do that. > > https://docs.djangoproject.com/en/dev/topics/forms/media/ Thanks for the explanation, but JS is not an option here. Any other solution available? Axel --- PGP-Key

Re: expand fieldset by choice

2012-08-27 Thread Axel Rau
d it back to the user. Hope the pages load fast... Oh, yes, I'm learning... Seems, we have to adjust policies... Another question: How can I expand the right fieldset dependent of current content of my choices field (as loaded from db) while rendering the change page initially? Axel --- PG

Re: expand fieldset by choice

2012-08-28 Thread Axel Rau
;collapse',), 'fields': ('aoxuserid', 'quota') }), (_('Alias'), { ##'classes': ('collapse',), 'fields': ('alia

Re: expand fieldset by choice

2012-08-28 Thread Axel Rau
ne, ('remarks',))) return fs --- That is exactly your code, with the conditionals adjusted a little bit. 1st time after runserver, I get: 'Key 'aoxuserid' not found in Form' --- {% for line in fieldset %} --- Next time,

Re: Django & postgresql arrayfield support + filtering objects based on array contents

2012-09-03 Thread Axel Rau
pdf https://github.com/jkatz/django_postgres_extensions It contains integer array support. Axel --- PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Dealing with big changelists in admin

2012-09-12 Thread Axel Rau
produces no widgets and does not filter on a specific field. Axel --- PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Dealing with big changelists in admin

2012-09-12 Thread Axel Rau
ty_first_page=True): super(OneShotPaginator, self).__init__(object_list[:20], per_page, orphans, allow_empty_first_page) --- This did not reduce the number of displayed rows to 20. Only the summary count at the botton is now 20. )-8 Any glue? > > On Wed, Sep 12, 2012 at 1:44 PM, Axel Rau wro

Re: Dealing with big changelists in admin

2012-09-12 Thread Axel Rau
>> allow_empty_first_page=True): >>super(OneShotPaginator, self).__init__(object_list[:20], per_page, >> orphans, allow_empty_first_page) >> --- >> This did not reduce the number of displayed rows to 20. >> Only the summary count at the botton is now 2

Use STATIC_URL in templates

2012-09-12 Thread Axel Aguilar
Hello, I'm pretty new with django, exactly the same than with python, and after reading a few tutorials and make a very simple django site, I have a django/python question... I made this script in python: import os import random url ='/home/usuario/django/projects/volei/volei/static/i

Re: Dealing with big changelists in admin

2012-09-12 Thread Axel Rau
Am 12.09.2012 um 16:20 schrieb Stephen Anto: > Hi, > > Pls refer this link <http://f2finterview.com/web/Django/15/> > http://f2finterview.com/web/Django/15/ it may give you solution Any hint, how to integrate this into the admin? > > On Wed, Sep 12, 2012 at

Search/Lookup of raw_id_field in inline

2012-09-18 Thread Axel Rau
r glass, I come to the change list of the related table where I can select a row (mark its check box) but have no action or other widget, which says "return selected to the inline". How is this supposed to work? Axel --- PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius

[RESOLVED]: Re: Search/Lookup of raw_id_field in inline

2012-09-18 Thread Axel Rau
Am 18.09.2012 um 12:19 schrieb Axel Rau: > I have this inline: > --- > class LocallistentryInline(TabularInline): >model = Locallistentry >extra = 1 >raw_id_fields = ('relaynetfk', 'relayhostfk', 'mailrelationfk', > '

template for "Pagination for admin inlines" snippet

2012-10-08 Thread Axel Rau
Hi, anybody got a template working for this https://gist.github.com/559911 ? I have no idea how to fiddle it into the admin template system. Thanks, Axel --- PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius -- You received this message because you are subscribed to

View-Voodoo: Calling functions in a view does weird things

2011-08-20 Thread Axel Bock
= render_to_response). Now. The handler function sets a message. That does not work. But. If I copy-and-paste the code of the function "call_my_other_function" into the if-block in myview, it does. I don't get it - at all. Can someone please explain? Thanks in advance & greetings, Axel.

Re: View-Voodoo: Calling functions in a view does weird things

2011-08-20 Thread Axel Bock
I am _*SO*_ stupid. and equally embarrassed right now. oh boy. thank you so much. Am 20.08.2011 um 18:07 schrieb Yaşar Arabacı: > Do it like this: > > def myview(request): >if request.method =="POST": >return call_my_other_func(request) >else: rtr("index.html") > > def ca

extending the User profile - which way to go?

2011-08-20 Thread Axel Bock
e? Thanks in advance! Axel. -- 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

Re: extending the User profile - which way to go?

2011-08-21 Thread Axel Bock
Thanks for all your replies, it makes sense to wait until it's a performance problem :) Greetings, Axel. Am 21.08.2011 um 22:14 schrieb Simon Connah: > On 21 Aug 2011, at 19:37, Shawn Milochik wrote: > >> Using a OneToOne field does the same thing as a FK with unique set

dynamic field display

2011-08-22 Thread Axel Bock
he form on display, depending on the user settings. Any suggestions? Greetings & thanks, Axel. -- 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 t

Re: CSS question

2011-08-22 Thread Axel Bock
, quite helpful. Greetings, Axel. p.s.: does that mean I'm intelligent? ;) Am 21.08.2011 um 23:47 schrieb Joshua Russo: > I know this is a bit off topic but I know this place is full of very helpful > intelligent people. :o) > > Ok so I have an html block (div, p, doesn&#

Re: CSS question

2011-08-22 Thread Axel Bock
well, I'd go for it. of course the table might be wrong. that'd be bad, too :) greets, axel. Am 22.08.2011 um 21:19 schrieb Cal Leeming [Simplicity Media Ltd]: > Sorry to be a party pooper, but inline-block is yet again another one of > those big no-nos when it comes to c

Re: dynamic field display

2011-08-24 Thread Axel Bock
arted "small" and postponed the problem. we'll see when I get there ;) greetings, axel. Am 23.08.2011 um 19:22 schrieb Subhranath Chunder: > Manipulating the form instance attributes at runtime in your view might be > possible by modifying some internal fields, but th

Django queries with dates and __lte

2011-09-08 Thread Axel Bock
n_before = Leg.objects.filter(start__lte=1400).order_by('start')[:1] … returns the leg actually starting at 1400 (ltEQUAL, right?), but it does not, it returns ONE (the leg starting at 1200). Does anyone know why? Django 1.3, SQLite for now. Thanks & greetings, Axel. -

Re: Django queries with dates and __lte

2011-09-09 Thread Axel Bock
Indeed :) . I'd never have guessed that. Thanks, Axel. Am 08.09.2011 um 17:47 schrieb Shawn Milochik: > I think your order by needs to be "-start" instead of "start," then > take [0] instead of [:1]. That will get the newest entry that matches > your query. &g

Obtaining field name in template

2012-11-12 Thread Axel Rau
I get the field name (model.field.verbose_name)? Axel --- PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius -- 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 uns

Re: Obtaining field name in template

2012-11-13 Thread Axel Rau
Am 12.11.2012 um 22:59 schrieb Lachlan Musicman: > On Tue, Nov 13, 2012 at 9:51 AM, Axel Rau wrote: >> 1st trial with generic views: >> >> url.py: >>url(r'^account/(?P\d+)/$', AccountDetailView.as_view(), >> name='account-detail'), &

Obtaining related model name during form creation

2012-12-05 Thread Axel Rau
, '')# representation of related instance How can I obtain the class name of related model? Axel --- PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Obtaining related model name during form creation

2012-12-05 Thread Axel Rau
Am 05.12.2012 um 11:23 schrieb Axel Rau: > In __init__ in my form class I have: > > for name, field in self.fields.items(): > model_field = self.instance._meta.get_field_by_name(name)[0] > if isinstance(field, forms.models.ModelChoiceField):# foreign key &g

Re: Append [RESOLVED] to your post subject if you got to a working solution

2012-12-26 Thread Axel Rau
of "subject" for threading. Axel --- PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius -- 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 unsubs

Re: template for "Pagination for admin inlines" snippet

2013-02-06 Thread Axel Rau
ever get this to work? No, I gave up with admin. > > On Monday, 8 October 2012 10:37:09 UTC-4, axel...@chaos1.de wrote: >> >> Hi, >> >> anybody got a template working for this >>https://gist.github.com/559911 >> ? >> I have no idea ho

Re: Popen works on system but fails on Django

2013-04-28 Thread Axel Rau
environments: https://pypi.python.org/pypi/virtualenv/1.9.1 Axel --- PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gro

Multiline tags (again)

2013-10-01 Thread Axel Haustant
te simples, I think there should be multine template tags support, at least tags supporting args and kwargs. If I follow the current reasoning (you don't want people using args and kwargs too much) then you should simply remove them but it will be a sad move. Best, -- Axel H. -- You re

ModelForm validation

2010-12-28 Thread Axel Bock
n = FlownMissionForm(request.POST, instance=inst) which does not work at all :( . The validation fails all the time ... . I just need to inject 2 required values somewhere in the POST data, but I have no clue how. Any help would be greatly appreciated, and I am a total django "newb" ... :) Than

Re: ModelForm validation

2010-12-29 Thread Axel Bock
only available after is_valid() was called, but is_valid() throws an exception because the required field is missing - and I can't set it. The hidden field thing is the last thing I wanted to try. bad style, you know :) , cause security risk. thanks! Axel. 2010/12/29 derek > A

Re: ModelForm validation

2010-12-30 Thread Axel Bock
Ah :) . I should have thought of that ... pretty stupid of me :) Thanks for the clarification, I'll try that, makes perfect sense! /Axel. 2010/12/30 derek > Alex > > And I seem to have been equally unclear :} > > I agree that cleaned_data is only available after is_v

modelformset not iterable

2011-01-24 Thread Axel Bock
_class:"myclass" }} {% endfor %} {% endfor %} in my eyes that's all pretty simple, but it drives me crazy right now cause it does not work at all. in case you wonder: the management_form is rendered correctly. The rendered code for this looks like th

Re: modelformset not iterable

2011-01-24 Thread Axel Bock
forget it. it was formset.forms ... I *SWEAR* there is another example just with "for form in formset" ... thanks anyway :) Axel. 2011/1/25 Axel Bock > Hello all, > > I am trying to implement something quite simple, in my eyes. But it does > not work at all ... .

Re: need help following tutorial part 1

2011-01-29 Thread Axel Bock
, axel. 2011/1/29 Panupat > I'm kinda stuck and would greatly appreciate any help. > > I followed these turorials and got Django to install. Was able to > import Django and print out the version correctly. I'm running > Apache2.2 on windows 7 with mod_wsgi > > h

Re: need help following tutorial part 1

2011-01-29 Thread Axel Bock
you should not. are you IN c:\...\scripts when you type in "django-admin.py"? AFAIK windows adds the current directory always to the path. and it's AXEL ;) 2011/1/29 Panupat > Hi Alex. Thank you for you suggestion. > > It seems I can get the script to run if I type

model form validation

2011-02-05 Thread Axel Bock
t can't be that hard ... Thanks in advance & greetings, Axel. class LegForm(forms.ModelForm): class Meta: model = Leg widgets = { 'flownmission' : widgets.HiddenInput(), 'blockoff' : widgets.TimeInput( attrs={

Re: model form validation

2011-02-05 Thread Axel Bock
, time=03:00, valid field. if you have any other idea how to do this - don't hesitate :) . and maybe (hopefully) this will also solve the mysteriously vanished datetime values. Thanks! Axel. 2011/2/5 Shawn Milochik > What exactly are you trying to accomplish? I'm not sure over

Re: model form validation

2011-02-05 Thread Axel Bock
f() - it didn't get called. Any ideas, why? Axel. 2011/2/5 Shawn Milochik > On 02/05/2011 01:08 PM, Axel Bock wrote: > >> practically: >> - the user enters "0300" in the datetime field. >> - I make "0300" into date=0, time=03:00, valid field

DateTime entry like in the admin interface

2011-02-11 Thread Axel Bock
Hi again, I have in my model a DateTime input, which the admin interface automatically displays as two separate DATE and TIME input fields. I would like to do that, too. Can anyone tell me how? :) Thanks & greetings, Axel. -- You received this message because you are subscribed to the Go

Re: Filtering Queryset by Foreign Key Properties

2011-02-11 Thread Axel Bock
Hi, try this, I guess this should workd (being new here myself :): OrderPositions.objects.filter(order__type = "A") and maybe have a look here: http://docs.djangoproject.com/en/1.2/ref/models/querysets/#field-lookups Cheers, Axel. 2011/2/11 josch > Hi, > > I`m searching

Re: Looking for IDE + FTP

2011-02-11 Thread Axel Bock
hm, I'm using pycharm right now, and I really think it "kicks ass" ;) havent looked at the other "usual" ones (komodo, wing, eclipse, etc.) for a long time, though. about ftp ... looks like it: http://www.jetbrains.com/pycharm/webhelp/deployment-connection-tab.html c

Re: Looking for IDE + FTP

2011-02-13 Thread Axel Bock
"looks"? tried them yourself? :) for me it looks like aptana tried to focus on ruby/rails, while pycharm definitely focuses on python/django. -Axel. 2011/2/13 Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> > Aptana looks nice, PYCharm looks a bit

2.2a1: django-admin migrate throws UnicodeEncodeError

2019-02-01 Thread Axel Rau
ve ASCII only? Someone changed here 3 dots to ellipsis character: https://github.com/django/django/commit/50b8493581fea3d7137dd8db33bac7008868d23a#diff-e835ddfb52774b39749788a0d046e477 Axel --- PGP-Key:29E99DD6 ☀ computing @ chaos claudius -- You received this message because you are subscribe

state_operations while adding 2 fields

2019-05-31 Thread Axel Rau
Hi all, is it posible to bundle 2 AddField migrations with one RunPython? How should I arrange the state_operations in this case? The following migration does not work. Please advice, Axel def forwards_func(apps, schema_editor): with connections['erdb_migration'].cursor()

Re: state_operations while adding 2 fields

2019-05-31 Thread Axel Rau
> Am 31.05.2019 um 13:15 schrieb Axel Rau : > > is it posible to bundle 2 AddField migrations with one RunPython? > How should I arrange the state_operations in this case? > > The following migration does not work. It seems, the variant below does the job. However there is

--fake-initial does not follow PostgreSQL search_path schema list

2019-06-08 Thread Axel Rau
. Is this a bug in 2.2? Any workaround? Any help appreciated, Axel --- PGP-Key:29E99DD6 ☀ computing @ chaos claudius -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, se

Re: --fake-initial does not follow PostgreSQL search_path schema list

2019-06-11 Thread Axel Rau
This worked with Django 2.1. Seems to be a bug in 2.2 Axel > Am 08.06.2019 um 21:50 schrieb Axel Rau : > > The database user sets a search_path to a,b > In schema b exists a set of tables corresponding to models and > inital_migration. > Running > migra

get_absolute_url() necessary with ModelForm ?

2019-07-04 Thread Axel Rau
I’m using a model in 2 apps with different urls. Subclasing it and overwriting get_absolute_url() did not work, because it mangled dbtable. UpdateView does not work with ModelForm w/o get_absolute_url(). Does there any workaround exist? Thanks, Axel --- PGP-Key: CDE74120 ☀ computing @ chaos

Re: get_absolute_url() necessary with ModelForm ?

2019-07-07 Thread Axel Rau
table. >> UpdateView does not work with ModelForm w/o get_absolute_url(). >> >> Does there any workaround exist? >> >> Thanks, Axel >> > > UpdateView works perfectly fine without `get_absolute_url()`. It does however > need a `success_url

static files not found on development server

2017-07-06 Thread Axel Rau
#x27;, 'django.template.loaders.app_directories.Loader', ], # end - please add only if APP_DIRS is False 'debug': True } } ] STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, „static") ##print(‚STATIC_ROOT = {}&

Re: static files not found on development server

2017-07-06 Thread Axel Rau
he static path. I have checked out the static stuff on dev (static/), which was commited on prod server. Axel --- PGP-Key:29E99DD6 ☀ computing @ chaos claudius -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

1.11: Value error on related user name during save of user model

2017-08-21 Thread Axel Rau
ame())) File "...python3.5/site-packages/django/db/models/fields/related_descriptors.py", line 216, in __set__ self.field.remote_field.model._meta.object_name, ValueError: Cannot assign "'unp...@framailx.de'": "Account.localemail" must be a "

Re: 1.11: Value error on related user name during save of user model

2017-08-22 Thread Axel Rau
Thanks for taking the time to write such an extensive answer. > Am 21.08.2017 um 23:53 schrieb James Schneider : > > > > On Mon, Aug 21, 2017 at 7:50 AM, Axel Rau <mailto:axel@chaos1.de>> wrote: > While upgrading from 1.9 to 1.11, ForwardManyToOneDescriptor.__

Re: 1.11: Value error on related user name during save of user model

2017-09-14 Thread Axel Rau
> Am 21.08.2017 um 23:53 schrieb James Schneider : > > If this was working under 1.9 (I'd be surprised if it was), then I would file > this as a backward-incompatibility bug with the bug tracker. https://code.djangoproject.com/ticket/28594 Axel --- PGP-Key:29E99DD6 ☀

How do I let forms.models.ModelChoiceField.queryset relate on request.user?

2015-11-01 Thread Axel Rau
User should see only choices related to him in a ModelChoiceField. Do I need a fresh form per request? What would be the best approach? Thanks, Axel --- PGP-Key:29E99DD6 ☀ +49 160 9945 7889 ☀ computing @ chaos claudius -- You received this message because you are subscribed to the Google

Re: How do I let forms.models.ModelChoiceField.queryset relate on request.user?

2015-11-04 Thread Axel Rau
Thanks, I will try this, Axel > Am 02.11.2015 um 13:50 schrieb Vijay Khemlani : > > At least what I do in those cases is to add a constructor (__init__) to the > form class which takes the user as a parameter, modify the choicefield > queryset, and then call the original con

Re: How do I let forms.models.ModelChoiceField.queryset relate on request.user?

2015-11-16 Thread Axel Rau
Any idea how to add __init__() to a form class, created by modelform_factory () ? Axel Am 02.11.2015 um 13:50 schrieb Vijay Khemlani : > At least what I do in those cases is to add a constructor (__init__) to the > form class which takes the user as a parameter, modify the choic

Re: How do I let forms.models.ModelChoiceField.queryset relate on request.user?

2015-11-17 Thread Axel Rau
ds if f.name == formfield_name] qs = userVisibleFilterQS( self.request.user.pk, False, modelfield.related_model()) if qs: formfield.queryset = formfield.queryset.filter(qs) Am 16.11.2015 um 1

Re: How do I let forms.models.ModelChoiceField.queryset relate on request.user?

2015-11-18 Thread Axel Rau
lass from > ModelForm. > Ah, thanks for the explanation, Axel --- PGP-Key:29E99DD6 ☀ +49 160 9945 7889 ☀ computing @ chaos claudius -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

application not recognized as URL namespace

2015-12-14 Thread Axel Rau
#x27; is not a registered namespace while the above debug print gives authentication installed? True What am I doing wrong here? Please advice, Axel — PGP-Key:29E99DD6 ☀ +49 160 9945 7889 ☀ computing @ chaos claudius -- You received this message because you are subscribed to the Google

Re: application not recognized as URL namespace

2015-12-14 Thread Axel Rau
Thanks for taking the time, > Am 14.12.2015 um 14:06 schrieb knbk : > > Hi Axel, > > An installed application and a registered URL namespace are two distinct > concepts. A URL namespace can only be defined by setting the app_name > attribute in your urlconf. In this ca

Re: application not recognized as URL namespace

2015-12-14 Thread Axel Rau
^password_reset/done/$', views.password_reset_done, name='password_reset_done'), url(r'^reset/done/$', views.password_reset_complete, name='password_reset_complete'), url(r'^reset/(?P[0-9A-Za-z]{1,13})-(?P[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',

Re: application not recognized as URL namespace

2015-12-14 Thread Axel Rau
his to an instance namespace would just require in urls: url(r'^auth/', include('authentication.urls', namespace='auth')), and where I reverse: reverse(’auth:password_change’) right? But this again gives: django.core.urlresolvers.NoReverseMatch: '

[RESOLVED] --was: Re: application not recognized as URL namespace

2015-12-14 Thread Axel Rau
I see my error: ’auth’ is already an appname (django.contrib.auth). Using ’accnt’ works perfectly! Thanks, again, Axel > Am 14.12.2015 um 16:32 schrieb Axel Rau : > > >> Am 14.12.2015 um 16:03 schrieb knbk > <mailto:marten.k...@gmail.com>>: >> >&g

makemigrations of model with single table inheritance and child fields

2015-12-22 Thread Axel Rau
comes into mind. Any help appreciated, Axel -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this g

obtaining related object from django.db.models.fields.related.ForeignKey

2016-04-02 Thread Axel Rau
the related object: >>> f1 = Mailbox._meta.get_field(‚localdomainfk') >>> f1.value_from_object(m1) 7 Can anybody show me, how to get the related object shortcut, if I have only the local object and the foreign key field? Axel -— PGP-Key:29E99DD6 ☀ computing @ chaos clau

2.1b1: Getting "unexpected keyword argument 'limit_choices_to'"

2018-07-04 Thread Axel Rau
ile "/usr/local/py_env/erdb_d2.1+p3.6/lib/python3.6/site-packages/django/db/models/fields/__init__.py", line 890, in formfield return form_class(**defaults) File "/usr/local/py_env/erdb_d2.1+p3.6/lib/python3.6/site-packages/django/forms/fields.py", line 213, in __in

Re: 2.1b1: Getting "unexpected keyword argument 'limit_choices_to'"

2018-07-05 Thread Axel Rau
Thanks Markus for the hint. f3fa86a fixed the problem. > Am 04.07.2018 um 17:11 schrieb Markus Holtermann <mailto:i...@markusholtermann.eu>>: > > Thanks for the report Axel. This seems to be the same issue as the one > reported in https://code.djangoproject.com/t

Re: Need Developers

2024-10-28 Thread Axel Tracy
his thread, and the subsequent notifications for all the group members is confirming to me that this advice is correct. If anyone is "interested" please refer to David's reply and do your best to pass this possible test :-) All the best, Axel On Monday 28 October 2024 at 05:39:57 UTC+

Re: Digest for django-users@googlegroups.com - 2 updates in 1 topic

2025-01-08 Thread Axel Tracy
Thank you that someone pointed this out, and called it shameful. On Wednesday, 8 January 2025 at 03:20:07 UTC+11 samarth rawat wrote: > Lol. UnpAiD iNtERNshIp. Asking for prod level work for free. Shameful. > > On Tue, 7 Jan, 2025, 15:41 , wrote: > >> django...@googlegroups.com >>

Re: Reg: internship

2025-01-16 Thread Axel Tracy
Well said, Mahboob! Preying on the vulnerabilities (or the rare privilege!) of prospective interns is not a good way to run things, and should be a screaming red flag to this community. On Thursday, 16 January 2025 at 07:25:05 UTC+11 Otecina wrote: > After all, they work that way! Thank you for