Re: Django models `EmailField` default is empty string - Not `None` (or Null) . Why ?

2021-06-13 Thread Aymeric Augustin
Hello, https://docs.djangoproject.com/en/3.2/ref/models/fields/#django.db.models.Field.null should clarify the situation. -- Aymeric. > On 13 Jun 2021, at 13:17, Carlos Leite wrote: > > > Yesterday I

Re: Django Models

2019-08-09 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely to answer yo

Re: Django Models

2019-08-08 Thread RAVVE MAALIE
Actually you can refer to one to many relation model. Its like one user has multiple address Or One adress has multiple users. In models file. You can make changes. Like For 1 user multiple address Eg: Class User(models.Model): User_name= models.Charfield() Class address(models.Model)

Re: Django models and different types

2012-05-11 Thread Michael da Silva Pereira
Apologies got the groups confused. -- Mike -- * * *Tradepage, now part of the Cloud Group, is an Authorised Google Apps for Business Reseller. For only R450 per user per year, get Business Email, Calendars, Documents, syncing with mobile devices and much more. Find out more: http://www.trad

Re: Django models and different types

2012-05-11 Thread Karen Tracey
Please ask questions about using Django on django-users. The topic of this list is the development of Django itself. Karen -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.

Re: Django models should not contain 'evaluate' field/method since Django 1.1

2010-05-27 Thread Łukasz Korzybski
Sure, The ticket: http://code.djangoproject.com/ticket/13640#preview Greetings, Lukasz On May 25, 2:49 pm, Jacob Kaplan-Moss wrote: > On Tue, May 25, 2010 at 12:06 PM, naos wrote: > > I was migrating some django project recently from django 1.0.4 to 1.2. > > In Django 1.2/1.1 I found that if m

Re: Django models should not contain 'evaluate' field/method since Django 1.1

2010-05-25 Thread Jacob Kaplan-Moss
On Tue, May 25, 2010 at 12:06 PM, naos wrote: > I was migrating some django project recently from django 1.0.4 to 1.2. > In Django 1.2/1.1 I found that if model have 'evaluate' attribute then > one will get exception in admin edit page for that model if the page > contains inline forms with relate

Re: Django Models

2007-09-24 Thread Ludovico Magnocavallo
James Bennett wrote: > > It used to work in older versions of Django. Right now it is not > supported, and it is probably quite dangerous to the integrity of your > data to rely on things which accidentally "sort of work" due to the > remains of the legacy system. Again: this is not currently sup

Re: Django Models

2007-09-24 Thread James Bennett
On 9/24/07, Ludovico Magnocavallo <[EMAIL PROTECTED]> wrote: > I have always read that Django does not support model inheritance or > subclassing, but in my experience some forms of it work. Take the > following for example, straight from a running app: It used to work in older versions of Django

Re: Django Models

2007-09-24 Thread Ludovico Magnocavallo
James Bennett wrote: > > Django does not currently support any form of subclassing or > inheritance for model classes. Please search the archives of this > list, the django-developers list, or the Django Trac instance if you > would like more information on this topic. I have always read that Dj

Re: Django Models

2007-09-24 Thread James Bennett
On 9/24/07, Sebastien Lannez <[EMAIL PROTECTED]> wrote: > Is it a limitation of SQLLite ? If not, how can we implement this > mapping ? Django does not currently support any form of subclassing or inheritance for model classes. Please search the archives of this list, the django-developers list,