hi guys, i'm trying to customize the django user model but i get this
error:
: (admin.E033) The value of
'ordering[0]' refers to 'username', which is not an attribute of
'cms.PageUser'.
: (admin.E108) The value of
'list_display[0]' refers to 'username', which is not a callable, an
attribute
> `wrap_and_raise()` will appear in the traceback, `raise
> wrap_exception(SomeException())` would be cleaner.
I like that
> Better yet, make all exceptions that are used to reraise other
> exceptions a subclass of WrappingException (pick a better name) that
> either takes a `cause=exc` or
I think I should bring this ticket up before 1.2 is released
http://code.djangoproject.com/ticket/12171.
Unless I'm doing something wrong (highly possible), get_or_create is
broken with the "postgresql" db backend. This would be a pretty
serious problem, either because the backend lacks core
I'd like some opinions on the existing patch for
http://code.djangoproject.com/ticket/3349.
This ticket ("If an ImportError occurs within some loaders a rather
confusing exception is raised") seeks to address the difficulty of
debugging ImportErrors raised in template tag library.
The cause of
Maybe you misunderstood -- I just meant for `firstof` and `cycle`, not
template tag implementation in general.
On Aug 3, 4:53 pm, Malcolm Tredinnick <malc...@pointy-stick.com>
wrote:
> On Mon, 2009-08-03 at 16:25 -0700, ab wrote:
> > Is this something that could be backwards-inco
Is this something that could be backwards-incompatible in 1.2? For
1.1, the options I can think of are to make new tags (cyclesafe) or
add yet another setting. Neither seems good. Any other ideas?
--~--~-~--~~~---~--~~
You received this message because you are
When a template tag takes a variable as input and renders its value
(like the `cycle` or `firstof` tags), that value should respect the
context's autoescape setting. Right now, the values are never escaped.
I'm proposing to make this change, and provide a unified way for
people to implement their
Here's some code we use at Disqus.
def model_bitfield_handler(attr_name, bit_number):
mask = 2**bit_number
def _bit_handler(self, new_val=None):
if new_val is not None:
old_val = (getattr(self, attr_name, 0) or 0)
if new_val:
setattr(self,
For the api to accept a DSN, alias, or connection anywhere would add
similar code in multiple places. I propose that the aliases are mapped
into django.db.connections. For your example, you could use
django.db.connections.archive. I also propose that you can either
define a single database (as