Re: Double arrays in models django

2010-04-07 Thread pmains
If there is no Django model field for this, then one option would be
to create your own model field (http://docs.djangoproject.com/en/dev/
howto/custom-model-fields/). Of course, it would not be compatible
with most SQL Database types.

Of course, it may be easier to just rethink your data model. Would it
be possible to create one or more additional tables to avoid using an
unusual DB construct like a 2D array?

Could you explain the problem in a little more detail? Saying that you
want a 2-dimensional array is very abstract, but if we understand what
problem you are trying to solve, what data you are attempting to
model, it will be easier to give you useful suggestions.

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Default email value for django.contrib.comments?

2009-02-21 Thread pmains

I'm writing a blog app (yeah, I know. super boring, right?), and I was
running into a strange issue where user comments were being issued a
default email address. Is there any way to prevent this from
happening?

The URL field is fine -- no default value is being set there.

I'm using django.contrib.comments. Other than this, I haven't had any
problems whatsoever with the app.

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---