Hi man,
Check 'class UserManager(): ..orgid = org_obj '
On Tue, Nov 26, 2019, 01:40 Ahmad Saki wrote:
> My custom authentication model in django:
>
> from django.db import models
> from django.contrib.auth.models import (
> AbstractBaseUser, BaseUserManager
> )
> from organization.models
Dear,
Thanks for your response.
I use the foreign key field 'orgid' or not but got the same error. If I
want to use this then where is my fault for this error!
On Tuesday, November 26, 2019 at 12:11:58 PM UTC+6, Integr@te System wrote:
>
> Hi man,
>
> Check 'class UserManager(): ..orgid = or
hi, inspect your typo and Organization model.
On Tue, Nov 26, 2019, 16:31 Ahmad Saki wrote:
> Dear,
> Thanks for your response.
> I use the foreign key field 'orgid' or not but got the same error. If I
> want to use this then where is my fault for this error!
>
>
> On Tuesday, November 26, 2019
organization.Organization model:
from django.db import models
class Organization(models.Model):
orgid = models.IntegerField(max_length=6, primary_key=True)
name = models.CharField(max_length=50)
phone = models.CharField(max_length=20,null=True,blank=True,default=None)
email = models.C
Hi man,
And u see error occur again, isn't it?
Do you differ two file that app output when you migrated?
On Tue, Nov 26, 2019, 22:40 Ahmad Saki wrote:
> organization.Organization model:
>
> from django.db import models
>
> class Organization(models.Model):
>orgid = models.IntegerField(max_l
Hello Dear,
Please explain with more words. How do I solve this problem? What can I do?
On Tuesday, November 26, 2019 at 9:54:26 PM UTC+6, Integr@te System wrote:
>
> Hi man,
>
> And u see error occur again, isn't it?
> Do you differ two file that app output when you migrated?
>
> On Tue, Nov 26,
Hi friend,
plz check these files: ' # Generated by Django 2.2.3 on 2019-11-26 15:36 '
and another (if u have), to see separating.
On Tue, Nov 26, 2019, 23:44 Ahmad Saki wrote:
> Hello Dear,
> Please explain with more words. How do I solve this problem? What can I do?
>
> On Tuesday, November 2
Hi friend,
When I want to create my custom authentication model User. I have got error
such as 'FieldDoesNotExist 'userid''.
So, I have deleted all of these previous migration_files, re-create
database and makemigrations. But cannot able to migrate again.
On Wednesday, November 27, 2019 at 12:
Hi,
If you have deleted your old db and creating a fresh database, then delete
all files generated previously using migration command and do migration
(have a backup before deleting files) ;)
On Tue, 26 Nov 2019 at 23:57, Ahmad Saki wrote:
> Hi friend,
>
> When I want to create my custom authe
Hi friend,
check again docs to see what benefit for u:
https://realpython.com/django-migrations-a-primer/#ensuring-model-definitions-and-the-database-schema-in-sync
Auth customizing:
https://docs.djangoproject.com/en/2.2/topics/auth/customizing/
On Wed, Nov 27, 2019, 12:34 Raja Sekar Sambath w
10 matches
Mail list logo