Hello All,
I have a model like this:
class Concept(models.Model):
tag = models.ForeignKey(Tag, null=True, on_delete=models.SET_NULL)
Now, I've a piece of code in my view:
if concept.tag:
concept.tag.delete()
concept.save()
I'm getting this error in line concept.save()
ValueError:
I suggest you to change the user creation form to set the three attributes
that you need (Is medical, is physuitherapist, is patient), so in the first
form (when you create the user) you will have usernarme, password,
Is_medical, is_physuitherapist, is_patient.
Take a look
-
Is code working right via manage runserver?
30 груд. 2015 13:59 "Baris Adrian" пише:
> hi Eugenio,
>
> Did you get a solution to this problem.
>
> If so what? because i am stuck and i could appreciate the help.
>
> Kindest REgards
>
> On Thursday, October 8, 2015 at
Thank YOU!!!
On Thursday, November 5, 2009 at 10:58:55 AM UTC+2, BlueBird wrote:
>
>
> Ok, I found a way around the problem, in case anyone ever has the same
> problem. If you specify TEST_DATABASE_NAME in your settings, it will
> force sqllite to use a file database instead of in-memory
Thanks for recommendation.
On Thursday, 31 December 2015 12:54:33 UTC+5:30, James Schneider wrote:
>
>
>
> I suppose my answer did leave out the ability to check the IP at the
> Django level and make decisions based on that information. Given the
> multiple ways that an IP address may be made
You may simple use nginx and have multiple server blocks, one for each
domain, all listening on the same port (80 or 443)
On Dec 30, 2015 10:11 AM, "Abraham Varricatt" <
abraham.varric...@googlemail.com> wrote:
> I'm trying to build something similar to a microservice using Django and
> can't
Using Django 1.6.11
I have just noticed for a few cases (at least) that, while delete
confirmation page in Django admin shows as usual in my app, it does not
also show the related child records that will be deleted when a parent
record is selected (the confirmation page only shows the parent
7 matches
Mail list logo